IChartSerie.CustomPaletteIndex

Fore Syntax

CustomPaletteIndex: Integer;

Fore.NET 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.

Fore 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:

Fore.NET Example

The requirements and result of the Fore.NET example execution match with those of the Fore example. Use Fore.NET analogs instead of Fore components.

Imports Prognoz.Platform.Interop.Chart;

Private Sub button1_Click(sender: System.Object; e: System.EventArgs);
Var
    Chart: IChart;
    Serie: IChartSerie;
    i: Integer;
Begin
    Chart := chartBoxNet1.CtrlBox.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;

See also:

IChartSerie