Page 1 of 1

Labels for error series sorted incorrectly

Posted: Thu Jan 30, 2014 2:47 pm
by 16064951
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

Re: Labels for error series sorted incorrectly

Posted: Thu Jan 30, 2014 3:16 pm
by Christopher
Chandran wrote: 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?
It probably is a bug, yes, although the simplest way to work around this for the moment is to use, e.g.

Code: Select all

series1.Add(3, 55, 13, " ", Color.Green);
instead of:

Code: Select all

series1.Add(3, 55, 13, "", Color.Green);