Forum > TAChart

Series using Builtin source visible at design but not runtime.

(1/1)

kapibara:
I added some data to a few series at designtime using the Builtin source. Looks like the attached pic. When the application runs, the series are not visible anymore. What to do?

wp:
You mean that series values are not stored when you add them to the DataPoints property of the built-in chart source at designtime? Yes, this is true, and it is one of the items on my to-do-list (https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues/37904) for which I do not have an idea how to solve it...

However, when you add a separate TListChartSource, link it to the series and enter the values to the DataPoints property of this external chartsource at designtime, the values will be preserved.

kapibara:
Changed to TListChartSource, all good.

An idea. Would it be possible to save the Builtin data if to borrow code from how TListChartSource does it? Both TListChartSource and BuiltIn seem to use the same DataPoint Editor.

I looked at the sources of both TListChartSource and DataPoint Editor but didn't find out where any saving takes place though.

Navigation

[0] Message Index

Go to full version