Turn off Points in Rose Series

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
esbglenn
Newbie
Newbie
Posts: 7
Joined: Fri Apr 04, 2014 12:00 am
Contact:

Turn off Points in Rose Series

Post by esbglenn » Fri Jun 13, 2014 5:11 am

TeeChart 2014: When using the design time editor with a Rose Series, and bringing up the Chart Editor, selecting the series - the second tab is "Point" and in there I can change whether the little squares (by default) are visible or not.

When creating and adding a Rose Series at runtime, I don't know how to turn these off programmatically - as there doesn't seem to be any "Point" Property.

Please advise :)

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

Re: Turn off Points in Rose Series

Post by Yeray » Fri Jun 13, 2014 1:14 pm

Hello,

TRoseSeries has a Pointer property because it inherits from TCustomCircledSeries. So, being Series1 an instance of TRoseSeries, I can do:

Code: Select all

Series1.Pointer.Visible:=false;
Note that, if you are accessing the series from the TChart TSeriesCollection you may need to do a cast. Ie:

Code: Select all

var i: Integer;
begin
  for i:=0 to Chart1.SeriesCount-1 do
    if Chart1[i] is TRoseSeries then
      (Chart1[i] as TRoseSeries).Pointer.Visible:=false;
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

esbglenn
Newbie
Newbie
Posts: 7
Joined: Fri Apr 04, 2014 12:00 am
Contact:

Re: Turn off Points in Rose Series

Post by esbglenn » Sat Jun 14, 2014 11:33 am

Thanks - that was what I needed :)

Post Reply