Hi,
i have a polar bar graph and i want to change the circle labels from 0, 22.5, 45, 67.5 ... to N, NNE, NE, NEE, ...
How can i do this ?
Thanks,
Minas
Wind name labels on Polar Bar Graph
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Minas,
Yes, you can achieve what you request using OnGetCircleLabel event as shown here:
Yes, you can achieve what you request using OnGetCircleLabel event as shown here:
Code: Select all
procedure TForm1.Series1GetCircleLabel(Sender: TCustomPolarSeries;
const Angle: Double; Index: Integer; var Text: String);
begin
if Angle = 0 then begin Text:='E'; exit; end;
if Angle = 90 then begin Text:='N'; exit; end;
if Angle = 180 then begin Text:='W'; exit; end;
if Angle = 270 then begin Text:='S'; exit; end;
Text:='';
end;
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |