Web forum is in read-only mode. Login as active registered customer for write access
  Forum Search   New Posts New Posts

Cannot change some markers in chart

 Post Reply Post Reply
Author
Hennekens Stephan View Drop Down
New Member
New Member
Avatar

Joined: 16 Aug 2012
Posts: 22
Post Options Post Options   Quote Hennekens Stephan Quote  Post ReplyReply Direct Link To This Post Topic: Cannot change some markers in chart
    Posted: 04 Jul 2018 at 9:29am
I want to change the color of some markers in a serie. With the implementation of the following code it doesn't work. 
Any idea how to implement this in a correct way?



Chart.BeginUpdate;
with Chart.Panes[0].Series.Add do 
 begin 
 ClearPoints; 
 ChartType := ctMarkers; 
 ShowValue := False;
 
Marker.MarkerType := mCircle; Marker.MarkerSize := 13; Marker.MarkerColor := clGreen; Marker.MarkerColorTo := Lighter(clGreen, 50); Marker.MarkerLineColor := clGreen; Marker.GradientType := gtForwardDiagonal;

// add all points
for i := 0 to _series.Count - 1 do
       begin
          ecoGraphSerie := TEcoGraphSerie(_series);
          AddDoublePoint(ecoGraphSerie.Mean, ecoGraphSerie.Mean, ecoGraphSerie.Name);
       end;
end;
    Chart.EndUpdate;
  
Chart.BeginUpdate;
    with Chart.Panes[0].Series[0] do
       for i := 0 to 2 do
       begin
          Points.Color := clRed;
         Points.ColorTo := Lighter(clRed, 50);
       end;
    Chart.EndUpdate;
Back to Top
Pieter Scheldeman View Drop Down
TMS Support
TMS Support
Avatar

Joined: 18 May 2010
Posts: 3201
Post Options Post Options   Quote Pieter Scheldeman Quote  Post ReplyReply Direct Link To This Post Posted: 05 Jul 2018 at 2:33pm
Hi, 

Markers cannot be changed individually. Each marker has the same color.
Back to Top
Hennekens Stephan View Drop Down
New Member
New Member
Avatar

Joined: 16 Aug 2012
Posts: 22
Post Options Post Options   Quote Hennekens Stephan Quote  Post ReplyReply Direct Link To This Post Posted: 09 Jul 2018 at 3:42pm
OK. But maybe a feature that can be implemented in future :-)
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down