CloneChart

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
mario_lpf
Newbie
Newbie
Posts: 1
Joined: Wed Feb 23, 2022 12:00 am

CloneChart

Post by mario_lpf » Mon Aug 22, 2022 2:38 pm

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

Yeray
Site Admin
Site Admin
Posts: 9622
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: CloneChart

Post by Yeray » Mon Aug 29, 2022 2:02 pm

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.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply