Page 1 of 1

Legend Text Style bugs?

Posted: Tue Jun 29, 2010 9:24 pm
by 15955419
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

Re: Legend Text Style bugs?

Posted: Thu Jul 01, 2010 2:44 pm
by yeray
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);

Re: Legend Text Style bugs?

Posted: Fri Jul 02, 2010 11:23 am
by yeray
Hi Tom,

I'm glad to announce that we've already fixed (TF90015015).

Re: Legend Text Style bugs?

Posted: Fri Jul 02, 2010 4:09 pm
by 15955419
That's great! Is there a schedule for the next point release to see the fix?

Regards,
Tom

Re: Legend Text Style bugs?

Posted: Fri Jul 02, 2010 4:30 pm
by yeray
Hi Tom,

I've sent you a mail with it to the mail account you have registered in these forums.