Can''t display data correctly in plot

Lets say you have XY data as follows:

0, 0
100, 100
200, 200
100, 300

I expect the x axis to bend back in an XY line chart. Aka, the points should be plotted in sequential order so the y axis would all increase w/ each data point but the value plotted on x axis would retrace itself back to 100.

I tried IsIndexed="False" which solved the original issue of scaling on x axis but it seems to want the x value to always increase which is not correct. It almost appears as if it sorts the x values for some reason even though my observable collection is correct.



SyncFusionExample2_58e0460e.zip

1 Reply

PJ Pavithra J Syncfusion Team May 12, 2009 10:44 AM UTC

Hi Dale,

Thanks for your interest in Syncfusion products.

The rendering mechanism of ChartAxis Label in our Chartcontol is like,

When IsIndexed is set to true, Y values will be plotted based on the order in which they are added to the collection and X values are displayed as labels in the X axis.

When IsIndexed property is set to false, all the values in the collection will be sorted in ascending order and they are plotted. If we have points with same X values, Y value will be plotted in the same X location.

Hence the result will be as said by you.

However, will we consider with our developer regarding the sorting mechanism (IsIndexed=false) and get back to you if we have plans to enhace the sorting feature.

Please let us know if you have further queries.

Regards,
Pavithra.J

Loader.
Up arrow icon