Hi:
I am using data charts and need help in implementing one of the requirements.
When I plot various charts for the given date range, I need to plot every chart with identical date range (start-end) regardless whether particular chart has data points for either of start and end dates. Lets say given date range is 12-Jul-2013 to 12-Jul-2014 and I need to plot graphs for Lab1 and Lab2. Assume Lab1 has a value for the start date but Lab2 doesn't have any value recorded for the same start date. So after plotting, I see Lab1 is plotted from 12-Jul-2013 and Lab2 graph started from 20-Jul-2013 instead.
My requirement says regardless having data on those start and end dates, the graph should always show identical date range on the x-axis. How can I do that? IgChart has it's own algorithm in plotting the x-axis based on available data plotted on y-axis, it seems. Any help would be greatly appreciated. Thanks
Hello Shashidhar,
Thank you for posting in our community.
If I understood your requirement right, you want to display dual X-axis with similar values regardless if the second X-axis has data that matches the one in the first X-axis. If this is the case, then I would suggest you to use composite chart with two X-axes and set the option labelLocation on the second X-axis that you add to the chart. Here is similar example in our samples browser: http://www.igniteui.com/data-chart/composite-chart
I've also created and attached a sample with similar scenario for your reference.
Please take a look at it and let me know if you have any further questions. Or if I misunderstood your requirement please explain me in more details what exactly are you trying to achieve.
Sincerely,
Tsanna