Page 1 of 1

Data source

Posted: Fri Jan 30, 2009 1:08 pm
by 9243038
Is there a possibility to share the data in my internal data structures with a Series, so that my program internal data and the Series data are consistent? I see it is possible with a database or a file, but I want to use only memory.

Does Series copy the data or access it by reference?

Posted: Mon Feb 02, 2009 2:28 pm
by narcis
Hi deha,

To achieve that you should define an event for your recordset being updated and call series' CheckDataSource method there.

Posted: Tue Feb 03, 2009 9:29 am
by 9243038
Hi Narcís, thanks for your answer.
How do I tell a Series where the data is found? Like CheckDataSource says, it check the data source. As written in documentation DataSource may be a database or an other Series. But I want to use my memory data structure. Any ideas?

Posted: Tue Feb 03, 2009 10:10 am
by narcis
Hi deha,

In that case you should manually iterate through your data structure and populate TeeChart series using Add/AddXY methods. Assigning a database datasource does the same internally.

Posted: Tue Feb 03, 2009 10:16 am
by 9243038
Hi Narcís,

thank you for your help. Now I know how to handle it.

Best regards
deha