Page 1 of 1

CloneChart

Posted: Mon Aug 22, 2022 2:38 pm
by 16593053
hi,
I'm trying to copy a surface (3D) chart from one form to another, I copied the chart to the secondd form at design time, then tried CloneChart at runtime and indeed it copies the chart, but the pallet is reverted to the standard one.
how do I clone a chart with all the properties?
thanks

Re: CloneChart

Posted: Mon Aug 29, 2022 2:02 pm
by yeray
Hello,

It depends on how the palette was set. If you set colors individually to each value, then the array of colors is related to the points and they aren't cloned if you don't clone the chart with data.
In that case, you could manually export the array of colors and import into the new chart.

Please arrange a simple example project we can run as-is here if you still find problems with it.