DataColor

Declaration: ChartBook.Charts[].DataColor: TColor;
The property DataColor specifies the color of the data items drawn on the chart. Each item can be assigned a different color.

The following code snippet creates the green curve in the diagram below:

  ...
  begin
  ChartBook.Charts[1].DataColor := clGreen;
  for i:=1 to 200 do
    ChartBook.Charts[1].MarkAt (i*1.5, sin(0.1*i)-1, 26);
  ...

Hint: Try to avoid situations where the colors of the data items are being permanently changed during the drawing process. This will slow down the rendering of the graphs by up to 20 %. Instead, data items of the same color should be drawn at once before drawing items of other colors.