This question is locked. New answers and comments are not allowed.
Hi,
I'm working with a RadChart that has a CategoricalAxis as its HorizontalAxis. The chart has a number of LineSeries bound to instances of a "IEnumerable<Point<string,int>>". The "string" in there is actually formatted from a date and a number (date as dd/mm, then the number in the next line).
The problem I'm having is that the dates on the chart appear out of order, even though they're ordered in the series. This only happens when there is more than one series plotted. Here's an example:
Series 1(date,value): (05/10 , 3) , (05/17 , 4)
Series 2(date,value): (05/10 , 2) , (05/16 , 5) , (05/17 , 3) , (05/21 , 4)
Series 3(date,value): (05/11 , 2) , (05/17 , 5) , (05/20 , 3)
In this example, the dates on the CategoricalAxis are plotted as follows: 05/10, 05/11, 05/17, 05/16, 05/20, 05/21 (keep in mind that even though these were dates originally, they've been formatted to strings)
As you can see, the "categories" aren't ordered correctly. I tried adding a line series with all the dates ordered and zero values but that didn't fix it.
Is there a way to make the axis plot the values in order? should I use another axis type for this? if so, which one would suit my requirements?
Thanks in advance.
I'm working with a RadChart that has a CategoricalAxis as its HorizontalAxis. The chart has a number of LineSeries bound to instances of a "IEnumerable<Point<string,int>>". The "string" in there is actually formatted from a date and a number (date as dd/mm, then the number in the next line).
The problem I'm having is that the dates on the chart appear out of order, even though they're ordered in the series. This only happens when there is more than one series plotted. Here's an example:
Series 1(date,value): (05/10 , 3) , (05/17 , 4)
Series 2(date,value): (05/10 , 2) , (05/16 , 5) , (05/17 , 3) , (05/21 , 4)
Series 3(date,value): (05/11 , 2) , (05/17 , 5) , (05/20 , 3)
In this example, the dates on the CategoricalAxis are plotted as follows: 05/10, 05/11, 05/17, 05/16, 05/20, 05/21 (keep in mind that even though these were dates originally, they've been formatted to strings)
As you can see, the "categories" aren't ordered correctly. I tried adding a line series with all the dates ordered and zero values but that didn't fix it.
Is there a way to make the axis plot the values in order? should I use another axis type for this? if so, which one would suit my requirements?
Thanks in advance.