Hi Support,
I think I saw a thread on this a few months ago but I can't find it - if it's still around here somewhere then please point me in the right direction
I have a system that adds points using X and Y values to a chart at regular intervals. As each point is added, a line must be drawn from the previous point to the current one, without changing the previous lines that have been drawn.
In the above example, Graph A represents the desired behaviour. Graph B is what happens when I try to use a TLineSeries and add the points using the .ADDXY method.
Is there a series (or chart) type that is designed to do this?
Thanks,
Monkey.
Keeping a graph line the same when adding points?
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Monkey,
That's because, by default, X values are sorted ascendingly as line series are designed for plotting sequential data. To achieve what you request you can set x values order to none before populating your series:
Hope this helps!
That's because, by default, X values are sorted ascendingly as line series are designed for plotting sequential data. To achieve what you request you can set x values order to none before populating your series:
Code: Select all
Series1.XValues.Order:=loNone;
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |