IChartSerie.SeriePoint

Syntax

SeriePoint(Index: Integer): IChartSeriePoint;

Parameters

Index. Index of the data series point.

Description

The SeriePoint property determines settings of a data series point by a specified index.

Example

Executing the example requires that the repository contains a regular report with the REGULAR_REPORT identifier. The active sheet of the report contains a chart with the PrxChart1 identifier.

Add links to the Metabase, Report, Chart, Tab, and Drawing system assemblies.

Sub UserProc;
Var
    mb: IMetabase;
    rep: IPrxReport;
    chart: IChart;
    SeriePoint: IChartSeriePoint;
Begin
    mb := MetabaseClass.Active;
    rep := mb.ItemById("REGULAR_REPORT").Edit As IPrxReport;
    chart := (rep.ActiveSheet As IprxTable).TabSheet.Objects.Object("PrxChart1").Extension As IChart;
    SeriePoint := chart.Series.Item(0).SeriePoint(0);
    SeriePoint.Selected := True;
    SeriePoint.Background.Type := ChartBackgroundType.Color;
    SeriePoint.Background.Color := New GxColor.CreateARGB(255, 245, 120, 255);
    SeriePoint.Label.Visible := True;
    SeriePoint.Label.Type := ChartLabelType.Noteline;
    (rep As IMetabaseObject).Save;
End Sub UserProc;

After executing the example the point 0 of the data series 0 is shown in lavender color.

See also:

IChartSerie