polar bar series axis labels

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
BlueMonkey
Newbie
Newbie
Posts: 34
Joined: Tue Nov 04, 2008 12:00 am

polar bar series axis labels

Post by BlueMonkey » Tue Mar 16, 2010 8:11 pm

The axis labels for a polar bar series may be 0 to 360 clockwise or counterclockwise from the positive x-axis. Is there a way to display axis labels as 0 to 180 counterclockwise from the positive axis and 0 to -180 clockwise from the positive x-axis?

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

Re: polar bar series axis labels

Post by Yeray » Wed Mar 17, 2010 9:26 am

Hi BlueMonkey,

You can try with the OnGetCircleLabel event to customize the text shown at each label:

Code: Select all

procedure TForm1.FormCreate(Sender: TObject);
begin
  Series1.FillSampleValues();
  Series1.CircleLabels:=true;
end;

procedure TForm1.Series1GetCircleLabel(Sender: TCustomPolarSeries;
  const Angle: Double; Index: Integer; var Text: String);
begin
  Text:=FloatToStr(360-Angle) + 'º';
end;
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