Labels for error series sorted incorrectly
Posted: Thu Jan 30, 2014 2:47 pm
Hi,
We are using tee chart for .net (Version 4.1.2013.7302)
We are facing problem while setting customized axis labels for error series. We are specifying labels while adding data in series.
Following is the data added in series. As it can be seen, for 4th and last point there are no labels specified.
While plotting chart with this series data, TeeChart sorts it in ascending order of x values, but it does not sort labels correctly.
This happens only when there exists empty label for one or more points.
series1.Add(0, 49, 10,"A",Color.Red);
series1.Add(1, 51, 11, "B", Color.Black);
series1.Add(5, 53, 12, "C", Color.Yellow);
series1.Add(3, 55, 13, "", Color.Green);
series1.Add(4, 57, 14, "E", Color.HotPink);
series1.Add(6, 59, 14, "", Color.Ivory);
Attached zip contains form application with this data. Clicking “Editor” button on launched form will bring up chart editor.
There on “Data” tab, we could see data is sorted but not the labels accordingly.
This problem does not occur if we specify labels for all points.
Could you please verify is this a bug or are we missing something?
Also, is there any existing way to avoid such sorting of data or if there is not any, is there any alternative to consider labels also while sorting?
Thanks,
Chandran
We are using tee chart for .net (Version 4.1.2013.7302)
We are facing problem while setting customized axis labels for error series. We are specifying labels while adding data in series.
Following is the data added in series. As it can be seen, for 4th and last point there are no labels specified.
While plotting chart with this series data, TeeChart sorts it in ascending order of x values, but it does not sort labels correctly.
This happens only when there exists empty label for one or more points.
series1.Add(0, 49, 10,"A",Color.Red);
series1.Add(1, 51, 11, "B", Color.Black);
series1.Add(5, 53, 12, "C", Color.Yellow);
series1.Add(3, 55, 13, "", Color.Green);
series1.Add(4, 57, 14, "E", Color.HotPink);
series1.Add(6, 59, 14, "", Color.Ivory);
Attached zip contains form application with this data. Clicking “Editor” button on launched form will bring up chart editor.
There on “Data” tab, we could see data is sorted but not the labels accordingly.
This problem does not occur if we specify labels for all points.
Could you please verify is this a bug or are we missing something?
Also, is there any existing way to avoid such sorting of data or if there is not any, is there any alternative to consider labels also while sorting?
Thanks,
Chandran