Legend Text Style bugs?

TeeChart for PHP
Post Reply
tgrubb
Newbie
Newbie
Posts: 6
Joined: Tue Mar 16, 2010 12:00 am

Legend Text Style bugs?

Post by tgrubb » Tue Jun 29, 2010 9:24 pm

Hi,
I am trying to display a pie chart where the legend shows the percentage amount of each slice. For example,
Slice Value
Planes 20
Trains 20
Automobiles 40

should display as
Slice Percentage
Planes 25%
Trains 25%
Automobiles 50%

I try to enable it with $chart1->getLegend()->setTextStyle(LegendTextStyle::$PERCENT);

However, this line seems to crash teechart. (BTW, this isn't the only LegendTextStyle that crashes TeeChart). Is there a workaround?

Tom

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

Re: Legend Text Style bugs?

Post by Yeray » Thu Jul 01, 2010 2:44 pm

Hi tgrubb,

I could reproduce the problem so I've added it to the defect list to be fixed asap (TF90015015).
The following should give the result you are finding (the label in the left and the percentage in the right) but for some reason it fails:

Code: Select all

$chart->getLegend()->setTextStyle(LegendTextStyle::$RIGHTPERCENT);
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

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

Re: Legend Text Style bugs?

Post by Yeray » Fri Jul 02, 2010 11:23 am

Hi Tom,

I'm glad to announce that we've already fixed (TF90015015).
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

tgrubb
Newbie
Newbie
Posts: 6
Joined: Tue Mar 16, 2010 12:00 am

Re: Legend Text Style bugs?

Post by tgrubb » Fri Jul 02, 2010 4:09 pm

That's great! Is there a schedule for the next point release to see the fix?

Regards,
Tom

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

Re: Legend Text Style bugs?

Post by Yeray » Fri Jul 02, 2010 4:30 pm

Hi Tom,

I've sent you a mail with it to the mail account you have registered in these forums.
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