Cannot change some markers in chart |
Post Reply ![]() |
Author | |
Hennekens Stephan ![]() New Member ![]() Joined: 16 Aug 2012 Posts: 24 |
![]() ![]() ![]() ![]() 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; |
|
![]() |
|
Pieter Scheldeman ![]() TMS Support ![]() Joined: 18 May 2010 Posts: 3392 |
![]() ![]() ![]() ![]() |
Hi,
Markers cannot be changed individually. Each marker has the same color.
|
|
![]() |
|
Hennekens Stephan ![]() New Member ![]() Joined: 16 Aug 2012 Posts: 24 |
![]() ![]() ![]() ![]() |
OK. But maybe a feature that can be implemented in future :-)
|
|
![]() |
Post Reply ![]() |
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |