Order of Labels
Posted: Thu Mar 04, 2010 11:30 am
Hi,
I have an issue with the order of my labels in the chart series points.
I add 4 data points where the X Values are not in the order in which they are going to appear in the chart.
The points in the chart series are in the correct x-order, but the labels for those points are the labels as added in the code, and do not follow the order of the data points.
A small example will clarify my problem:
So, the order of the points in the charts is by x value, being 3,5,7,10
But the first point in the chart will get label "Test 5", the second point will have empty label, the third point will have label "Test 10" and so on.
See the screenshot for the resulting chart.
How can I solve this?
Many thanks,
Marijke.
I have an issue with the order of my labels in the chart series points.
I add 4 data points where the X Values are not in the order in which they are going to appear in the chart.
The points in the chart series are in the correct x-order, but the labels for those points are the labels as added in the code, and do not follow the order of the data points.
A small example will clarify my problem:
Code: Select all
Steema.TeeChart.Styles.Bar bar = new Steema.TeeChart.Styles.Bar();
m_tchart.Series.Add(bar);
bar.Add(5, 5, "Test 5");
bar.Add(3, 3, "");
bar.Add(10, 10, "Test 10");
bar.Add(7, 7, "");
But the first point in the chart will get label "Test 5", the second point will have empty label, the third point will have label "Test 10" and so on.
See the screenshot for the resulting chart.
How can I solve this?
Many thanks,
Marijke.