Page 1 of 1

Overlaying Data from a File

Posted: Mon Nov 07, 2005 10:39 am
by 9525312
I have been trying to overlay saved data with existing data in a Teechart.

The saved data being stored in XML format.

The saved data consists of a number of series, and I wish to load them after the existing data.

I can load single series from the XML file using the following code

Existing data is in Series(0)

TChart1.AddSeries( scLine)
SeriesXMLSource1.Chart = TChart1
SeriesXMLSource1.FileName = "c:\tee\test.xml"
SeriesXMLSource1.Series = TChart1.Series(1)
SeriesXMLSource1.SeriesNode = "Test"
SeriesXMLSource1.Load

This however does not load the series title into the legend.


What I cant see how to do is how to load all the series stored in the XML data after the existing data. I can get around the problem by loading the data first then re adding my existing data to the end but this seems clumsy, my existing data may be up to 90 series and readding them would be tedious.

Is there a way to load all the series data from a XML file after the already defined series ?

Posted: Mon Apr 03, 2006 1:59 pm
by narcis
Hi AR,

This can already be achieved using LoadMode property. When LoadMode is lmAppend, values are added to the series without clearing the series first, default is lmClear.