Question regarding the Order property
Posted: Thu Apr 19, 2007 6:32 pm
I am trying to understand how the ValueList.Order property works.
If I do something like the following:
Steema.TeeChart.Styles.Line lseries = new Steema.TeeChart.Styles.Line();
chart.Series.Add(lseries);
lseries.YValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending;
lseries.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending;
lseries.Add(mypointsX, mypointsY);
Where (mypointsX and mypointsY are each double[] that have exactly the same number of elements.
How does the ordering occur?
The 2 array of doubles are related where mypointsX[0] and mypointsY[0] define a point to plot in the chart. It does not make sense to me that you can order lseries.Xvalues and lseries.Yvalues. If they are ordered separately, then you lose the 1:1 relationship between the array of doubles.
I am probabaly way off base here and overlooking something obvious.
Can someone clarify the behavior?
If I do something like the following:
Steema.TeeChart.Styles.Line lseries = new Steema.TeeChart.Styles.Line();
chart.Series.Add(lseries);
lseries.YValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending;
lseries.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending;
lseries.Add(mypointsX, mypointsY);
Where (mypointsX and mypointsY are each double[] that have exactly the same number of elements.
How does the ordering occur?
The 2 array of doubles are related where mypointsX[0] and mypointsY[0] define a point to plot in the chart. It does not make sense to me that you can order lseries.Xvalues and lseries.Yvalues. If they are ordered separately, then you lose the 1:1 relationship between the array of doubles.
I am probabaly way off base here and overlooking something obvious.
Can someone clarify the behavior?