TGanttSeries.AddGanttColor

TGanttSeries.AddGanttColor
TGanttSeries

function AddGanttColor(Const AStart, AEnd, AY: Double; Const AXLabel: String; AColor: TColor): Integer;

Unit
GanttCh

Description
The AddGanttColor function adds a new Gantt bar point to the Series.

It calls the AddGantt function and sets the specified AColor parameter by using the TChartSeries.
ValueColor property.

This function returns the corresponding internal point index. You can then refer to this Gantt bar by using this index.

Please refer to TGanttSeries.AddGantt function for an example of adding Gantt bars.