IEaxWorkbook.Chart

Syntax

Chart: IEaxWorkbookChart;

Description

The Chart property returns chart parameters.

Comments

Use the IEaxWorkbook.Statistics property to work with parameters of the statistics panel.

Example

Executing the example requires a form containing:

Add links to the Collection and Chart system assemblies.

The example is a handler of the OnClick event for the Button1 component. Before button clicking, select calculated series.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    Ea: IEaxAnalyzer;
    Wb: IEaxWorkbook;
    Ch: IEaxWorkbookChart;
    Cap: IChartCaption;
    Ind: String;
Begin
    Ea := UiErAnalyzer1.ErAnalyzer;
    Wb := Ea As IEaxWorkbook;
    Ch := Wb.Chart;
    If Ch.Type = EaxWorkbookChartType.StatMethod Then
        If Ch.SerieTypeAvailable(EaxWorkbookChartSerieType.UpperConfidenceLevel) Then
            Ch.SerieTypeVisible(EaxWorkbookChartSerieType.UpperConfidenceLevel) := True;
            Ind := Ch.SerieTypeIndex(EaxWorkbookChartSerieType.UpperConfidenceLevel).ToString;
            Debug.WriteLine("Index of the series corresponding to the upper confidence limit: " + Ind);
        End If;
        If Ch.SerieTypeAvailable(EaxWorkbookChartSerieType.LowerConfidenceLevel) Then
            Ch.SerieTypeVisible(EaxWorkbookChartSerieType.LowerConfidenceLevel) := True;
            Ind := Ch.SerieTypeIndex(EaxWorkbookChartSerieType.LowerConfidenceLevel).ToString;
            Debug.WriteLine("Index of the series corresponding to the lower confidence limit: " + Ind);
        End If;
    End If;
    Cap := Ch.Chart.Caption;
    Cap.Text := Chart;
    Cap.Visible := True;
End Sub Button1OnClick;

The header is shown for the chart of the workbook when example is executed. If for selected calculated series upper and lower confidence limits are available, they will be displayed on the chart. Indexes of series corresponding to confident limits will be displayed to the console.

See also:

IEaxWorkbook