Hi all,
I have a polar plot with several series, each with several points. These points are joined by lines. The CloseCircle property is switched off, so a line is not drawn between the first and last point. This is desired.
What I would like to do is draw a line from the first and last points to the origin (centre of the polar plot). Is there an easy way to do this? Perhaps a property I can set?
Polar plot - drawing a line from a point to the origin
-
- Newbie
- Posts: 15
- Joined: Mon Nov 20, 2006 12:00 am
- Location: The Netherlands
- Contact:
Hi Steve,
I think you could solve this with simply adding a null point at point (0,0) as follows.
After that, if you want to hide this point, you should do something similar as follows, using OnGetPointerStyle event:
Note that I use the condition "Series1.ValueColor[ValueIndex] = clNone" because adding a null point on a Polar Series, the point is added as a normal point but with color clNone.
I think you could solve this with simply adding a null point at point (0,0) as follows.
Code: Select all
Series1.AddNullXY(0,0);
Series1.CloseCircle := True;
Code: Select all
function TForm1.Series1GetPointerStyle(Sender: TChartSeries;
ValueIndex: Integer): TSeriesPointerStyle;
begin
if (Series1.ValueColor[ValueIndex] = clNone) then
result := psNothing
else
result := psRectangle;
end;
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
-
- Newbie
- Posts: 15
- Joined: Mon Nov 20, 2006 12:00 am
- Location: The Netherlands
- Contact:
-
- Newbie
- Posts: 15
- Joined: Mon Nov 20, 2006 12:00 am
- Location: The Netherlands
- Contact: