Hi, I'm trying to plot a PolarBarSeries of wave data which comprises of wave direction in degrees (the Angle) against wave height in meters (the Radius). The problem I have is that the directional component is being plotted anticlockwise even when I set the series labels to clockwise.
Is there any way to get the direction(Angle) to increment clockwise from north so that 0 deg is north, 90 deg it east, 180 is south and 270 is west.
Regards,
Sean Palmer.
TPolarBarSeries
Hi Sean,
you can do this :
you can do this :
Code: Select all
Series1.CircleLabels := true;
Series1.ClockWiseLabels := true;
Series1.RotationAngle := 90;
Pep Jorge
http://support.steema.com
http://support.steema.com
Hi, Sean.
You can use series OnAfterAdd event to "transform" values from acw to cw. This involves the following operation:
angle = 360 - angle
Something like this:
You can use series OnAfterAdd event to "transform" values from acw to cw. This involves the following operation:
angle = 360 - angle
Something like this:
Code: Select all
procedure TForm1.Series1AfterAdd(Sender: TChartSeries;
ValueIndex: Integer);
begin
Sender.XValue[ValueIndex] := 360 - Sender.XValue[ValueIndex];
end;
Marjan Slatinek,
http://www.steema.com
http://www.steema.com