IChartSerie.CustomPaletteIndex

Syntax

CustomPaletteIndex: Integer;

Description

The CustomPaletteIndex property determines index of data series color in the standard palette.

Comments

The property is relevant if IChartSerie.ColorIsDefault = True.

Example

Executing the example requires a form, the Button component with the Button1 identifier on this form, the ChartBox component with the ChartBox1 identifier and the UiErAnalyzer component with the UiErAnalyzer1 identifier. Specify the UiErAnalyzer1 data source for the ChartBox1 component.

This example is a handler of the OnClick event for the Button1 component.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    Chart: IChart;
    Serie: IChartSerie;
    i: Integer;
Begin
    Chart := ChartBox1.Chart;
    For i := 0 To Chart.Series.Count-1 Do
        Serie := Chart.Series.Item(i);
        Serie.Is3DBorder := True;
    End For;
    Serie.ColorIsDefault := True;
    Serie.CustomPaletteIndex := 1;
End Sub Button1OnClick;

Clicking the button applies the following settings for data series:

See also:

IChartSerie