Page 1 of 1

Store TCHart, preserving datasources links

Posted: Tue Jul 24, 2012 11:13 am
by 16560694
I have created my own datasource to link my custom data to TCHart, and it works like a charm.

But now I want to allow my user to create charts and store them (as a template) including the data source links rather than the data itself.

Is there an example for doing this? Any tips?

Regards - Hans

Re: Store TCHart, preserving datasources links

Posted: Thu Jul 26, 2012 3:18 pm
by yeray
Hi Hans,

I'm afraid TeeChart doesn't store the datasource connection. When you apply a connection TeeChart internally loops into the dataset and calls the according Add/AddXY function so it ends in an internal array of values, as without any datasource connection.
So you should do it manually too.