IEaxChart.Range

Syntax

Range: IGxRect;

Description

The Range property determines the range of selected table area based on which the chart is plotted.

Comments

If only one cell is selected in the table. the chart is plotted by all table data. As a value of the Range property, the range is specified, in which:

Example

Sub UserProc;
Var
    MB: IMetabase;
    MObj: IMetabaseObject;
    Expr: IEaxAnalyzer;
    EChart: IEaxChart;
    Rect1: IGxRect;
Begin
    MB := MetabaseClass.Active;
    MObj := MB.ItemById(
"EXPRESS_REPORT").Edit;
    Expr := MObj 
As IEaxAnalyzer;
    EChart := Expr.Chart;
    Expr.UseGridSelection := 
True;
    Rect1 := 
New GxRect.Create(140260);
    EChart.Range := Rect1;
    MObj.Save;
End Sub UserProc;

 

After executing the example, the B40:C60 cell range becomes selected and a chart is plotted based on this cell range. Express report identifier - EXPRESS_REPORT.

See also:

IEaxChart