Hi,
How could I insert data to a ChartSeries and then redraw it?
I would like to X, Y data, its color, and X-label to a line series.
Thanks in advance.
Seungho Jung
How to insert data to a ChartSeries
-
- Newbie
- Posts: 8
- Joined: Fri Nov 25, 2005 12:00 am
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Seungho,
Just try using AddXY method of TLineSeries.
Just try using AddXY method of TLineSeries.
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 |
-
- Newbie
- Posts: 8
- Joined: Fri Nov 25, 2005 12:00 am
Re: How to insert data to a ChartSeries
Hi Narcís,
The AddXY method is append, not insert.
I would like to InsertXY( Insert_position_index, X, Y, X_label, Color ).
Is it possible?
The AddXY method is append, not insert.
I would like to InsertXY( Insert_position_index, X, Y, X_label, Color ).
Is it possible?
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Seungho,
Ok, then you may better set the XValues valuelist order to none before populating the series. This way series won't be drawn sequentially.
However if you really want to set the position index you can do it using this method:
Ok, then you may better set the XValues valuelist order to none before populating the series. This way series won't be drawn sequentially.
Code: Select all
Series1.XValues.Order := loNone;
Code: Select all
Series1.SwapValueIndex(Index1,Index2);
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 |