Page 1 of 1

CloneChartSeries and 3D PieSeries

Posted: Wed May 20, 2009 12:20 pm
by 10551554
Hey,

I have found another funny bug...
You can find the file Project1.zip I have uploaded today.
When I clone a TPieSeries in a 3D TChart, the depth of each slices is inverted! Another clone to a TQRChart produce the same artifact. But (even better) when I close the third form (containing the TQRChart) the second TChart is now correctly displayed. I can open another time the third form to have a good copy of the first graph.

Any idea for a workaround?

Alain

Posted: Wed May 20, 2009 12:40 pm
by 10551554
I have found a way:

Code: Select all

  CloneChartSeries(Series1).ParentChart := Form3.QRChart1.Chart;
  if Chart1.View3D
  then
  begin
    Form3.QRChart1.Chart.FreeAllSeries(nil);
    CloneChartSeries(Series1).ParentChart := Form3.QRChart1.Chart;
  end;
After cloning the TPieSeries, if the 3DView is active then I free it and clone it a second time.
Ask me if you have a better solution!

Posted: Wed May 20, 2009 2:36 pm
by yeray
Hi Alain,

Yes you are right. It seems that the pie series aren't cloned fine or something. I've added this to the wish list to be revised for next releases (TV52014170).

I've tried forcing a chart repaint but it has no effect, so you workaround seems to be the best.