GradientColor: IGxColor;
The GradientColor property determines a gradient color.
Use the IGxColor interface to work with available colors.
This example assumes that there is the Chart object of the IChart type.
Sub Gradient;
Var
Chart : IChart;
Ground : IChartBackgroundInfo;
Begin
Ground := Chart.ChartArea.BackgroundInfo;
Ground.Type := ChartBackGroundType.Gradient;
Ground.Color := GxColor.FromName("Blue");
Ground.GradientColor := GxColor.FromName("Red");
End Sub Gradient;
After executing the example the chart area is filled with a gradient where blue is the fill color and red is the gradient color.
See also: