Overlaying Data from a File

TeeChart for ActiveX, COM and ASP
Post Reply
AR
Newbie
Newbie
Posts: 8
Joined: Thu Dec 16, 2004 5:00 am

Overlaying Data from a File

Post by AR » Mon Nov 07, 2005 10:39 am

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 ?

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Mon Apr 03, 2006 1:59 pm

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply