IEaxChart.Range

Fore Syntax

Range: IGxRect;

Fore.NET Syntax

Range: Prognoz.Platform.Interop.Drawing.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:

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

Fore.NET Example

Imports Prognoz.Platform.Interop.Metabase;
Imports Prognoz.Platform.Interop.Express;
Imports Prognoz.Platform.Interop.Drawing;

Public Sub Main(Params: StartParams);
Var
    MB: IMetabase;
    MObj: IMetabaseObject;
    Expr: IEaxAnalyzer;
    EChart: IEaxChart;
    Rect1: GxRect = New GxRectClass();
Begin
    MB := Params.Metabase;
    MObj := MB.ItemById["EXPRESS_REPORT"].Edit();
    Expr := MObj As IEaxAnalyzer;
    EChart := Expr.Chart;
    Expr.UseGridSelection := True;
    Rect1.Create(140260);
    EChart.Range := Rect1;
    MObj.Save();
End Sub;

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