TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
-
esbglenn
- Newbie

- Posts: 7
- Joined: Fri Apr 04, 2014 12:00 am
-
Contact:
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

- Posts: 9645
- Joined: Tue Dec 05, 2006 12:00 am
- Location: Girona, Catalonia
-
Contact:
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:
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;
-
esbglenn
- Newbie

- Posts: 7
- Joined: Fri Apr 04, 2014 12:00 am
-
Contact:
Post
by esbglenn » Sat Jun 14, 2014 11:33 am
Thanks - that was what I needed
