1 decimal place for legend.texttyle = ltsLeftPercent

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Test Always
Newbie
Newbie
Posts: 14
Joined: Mon Jan 18, 2016 12:00 am

1 decimal place for legend.texttyle = ltsLeftPercent

Post by Test Always » Mon Jun 27, 2016 11:07 pm

Is there an easy way to make the legend only show one decimal point when the TextStyle = ltsLeftPercent? By default, it shows 2.

Thank you,

Ed Dressel

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

Re: 1 decimal place for legend.texttyle = ltsLeftPercent

Post by Yeray » Tue Jun 28, 2016 1:41 pm

Hi Ed,

You can use the series' PercentFormat property. Ie:

Code: Select all

Chart1[0].PercentFormat:='##0.# %';  //default '##0.## %'
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