Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1310
LineSeries and XAxis, how to show the biggest values in the XAxis when I have multiple series¿?
posted

Hello!

I have a xamDataChart where I add dynamically series depending on what the user selects as information to be shown.

The X Axis shows the date as categoryAxis. My problem comes when the user chooses 2 different data to be shown, one from the 2011 year and the other from the 2012 year.

In the X axis is only shown  the 2012 year, which is the last item the user has chosen, so the 2011 is never shown.

On the other side, if the user chooses to show something that starts at 2000 and finishes at 2015 as third option, the chart displays the three items correctly.

How can I make XAxis to display all the dates if I only choose the first and second option?

Thank you.