Page 1 of 1

The way point are connected in a line chart

Posted: Thu Aug 16, 2007 8:49 am
by 9637396
Hi

I have uploaded a zip file containing two screen shots.
The first screen shot show some points series where the points actually can be connected in a way where they would be shown as circles.
When you change to Line series type the series look like the second one of the pictures that I have uploaded to you.
The question is: Is it possible to have the plots drawn like circles instead of this zig-zag that you see on image number two.

Thanks in advance
Lars Iversen

Posted: Thu Aug 16, 2007 2:07 pm
by narcis
Hi Lars,

Yes. This is because, by default, line series are sorted in ascending order because they are designed to plot sequential data. To solve that you need to set series' XValues to not being ordered, for example:

Code: Select all

      fastLine1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.None; 
You should use this before populating your series.

Posted: Fri Aug 17, 2007 9:26 am
by 9637396
Ok.
But then I assume that the values will have to be put in in an order so that the points form the circle!? Right?
Is there not a possibility that teechart can join points that are closest to each other? that way I don't have to worry about sorting the values.

Posted: Fri Aug 17, 2007 10:19 am
by narcis
Hi Lars,
But then I assume that the values will have to be put in in an order so that the points form the circle!? Right?
Yes, that's right.
Is there not a possibility that teechart can join points that are closest to each other? that way I don't have to worry about sorting the values.
I'm afraid this is not possible for now. I'll add your request to our wish-list to be considered for inclusion in future releases.