Problem with changing TPieSeries.OtherSlice at runtime

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Patrik
Newbie
Newbie
Posts: 4
Joined: Tue Jun 15, 2004 4:00 am
Location: Stockholm, Sweden

Problem with changing TPieSeries.OtherSlice at runtime

Post by Patrik » Mon Nov 05, 2007 2:09 pm

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

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Mon Nov 05, 2007 7:20 pm

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Wed Nov 14, 2007 2:30 pm

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!
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Patrik
Newbie
Newbie
Posts: 4
Joined: Tue Jun 15, 2004 4:00 am
Location: Stockholm, Sweden

Post by Patrik » Mon Feb 18, 2008 12:59 pm

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

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Mon Feb 18, 2008 2:13 pm

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply