Page 1 of 1

Series-function problem LoadChartFromFile / SaveChartToFile

Posted: Wed Jul 13, 2005 4:00 pm
by 9237041
Hello!

I have three Series in my chart with data (dynamic). Now I add a new Series with Data Source "Function" (in the editor). Then I add the function "Copy" for example, my three Series as "Source Series" (in the editor). When I click the button "Apply", the function is visible in my chart. That's ok.

But if I save the chart to a file with "SaveChartToFile" and then load the chart with "LoadChartFromFile", I have the following problem:

After loading the chart, I clear all values, because I have to load them dynamic. And now, the function disappears. If I take a look in the editor, the "Data Source" for my series (saved as Copy-function) is set to manual and not to "Function".

Why does the chart lost the function and how could I execute the saved function, with the new added values to the series 1-3?

Thank you for your help!!

Nice day,
Gustav

Posted: Thu Jul 14, 2005 7:12 am
by narcis
Hi Gustav,

When importing/exporting charts datasources are not saved, data can be saved but not datasources. When importing the chart you'll have to reassign your datasources programmatically. For more information on how to work with TeeChart functions you can have a look at "Tutorial 7 - Working with functions". You'll find tutorials at TeeChart documentation folder.

Posted: Thu Jul 14, 2005 7:37 am
by 9237041
Hi Narcis!

Thank you very much! :-)
Will there be a way, to save datasources in the future? That would be a nice feature.

THX a lot!

Posted: Thu Jul 14, 2005 8:31 am
by narcis
Hi Gustav,

You're welcome!

I can't tell you for sure if or when will be fixed but it is already in our defect list to be fixed for future releases.