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
Turn off Points in Rose Series
Re: Turn off Points in Rose Series
Hello,
TRoseSeries has a Pointer property because it inherits from TCustomCircledSeries. So, being Series1 an instance of TRoseSeries, I can do:
Note that, if you are accessing the series from the TChart TSeriesCollection you may need to do a cast. Ie:
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;
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,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: Turn off Points in Rose Series
Thanks - that was what I needed