Page 1 of 1

Turn off Points in Rose Series

Posted: Fri Jun 13, 2014 5:11 am
by 16568901
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 :)

Re: Turn off Points in Rose Series

Posted: Fri Jun 13, 2014 1:14 pm
by yeray
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;

Re: Turn off Points in Rose Series

Posted: Sat Jun 14, 2014 11:33 am
by 16568901
Thanks - that was what I needed :)