Page 1 of 1

Problem with changing TPieSeries.OtherSlice at runtime

Posted: Mon Nov 05, 2007 2:09 pm
by 9337879
I run Delphi 2006 and Teechart Pro 7.08

In our application the user can change the OtherSlice value at runtime. This has not been a problem before but after our upgrade to teechart 7.08 and Delphi 2006 this does not work properly anymore.

After the otherslice value is changed, the chart doesnt repaint itself correctly and gets an empty slice. The other slice doesnt get any bigger.

I have tried pieSeries.repaint; but no effect.

Is this fixed en any later version of TeeChart? Or can I fix this myself somehow?

Thanks in advance
Patrik

Posted: Mon Nov 05, 2007 7:20 pm
by narcis
Hi Patrik,

This seems to be a bug and I can't think of a workaround at the moment. I've added the issue (TV52012571) to our defect list to be fixed for future releases.

Posted: Wed Nov 14, 2007 2:30 pm
by narcis
Hi Patrik,

The code below works fine for us here using our current sources. Could you please test it at your end?

Code: Select all

procedure TForm1.Button1Click(Sender: TObject);
begin
  Series1.OtherSlice.Value:=6;
end;

procedure TForm1.FormCreate(Sender: TObject);
begin
  Series1.Clear;
  Series1.AddPie(5,'slice 1');
  Series1.AddPie(7,'slice 2');
  Series1.AddPie(9,'slice 3');
  Series1.AddPie(1,'slice 4');
  Series1.AddPie(2,'slice 5');

  Series1.OtherSlice.Style:=poBelowValue;
  Series1.OtherSlice.Value:=4;
end;
Thanks in advance!

Posted: Mon Feb 18, 2008 12:59 pm
by 9337879
This code doesn't work for me either.

What version do you use when you get it to work? I use TeeChart Pro v7.08 Win32

Thanks in advance
Patrik

Posted: Mon Feb 18, 2008 2:13 pm
by narcis
Hi Patrik,

I've checked this is a a bug in TeeChart Pro v7 VCL. However, it is solved in current version which is TeeChart Pro v8 VCL.

You may also be interested in knowing that latest v7 release available at the client download area is v7.12.