MasterSerieIdx: Integer;
MasterSerieIdx: integer;
The MasterSerieIdx property determines index of the additional series that is an extension of the main series.
Default value : -1, main series is not extended. If the value is different than -1, the secondary series is displayed as extension of the main series.
Executing the example requires that the repository contains a regular report with the REGULAR_REPORT_MSIDX identifier. This report must contain only linear chart with five series.
Add links to the Chart, Metabase, Report, Tab system assemblies.
Sub Userproc;
Var
mb: IMetaBase;
regrep: IPrxReport;
chart: IChart;
sheet: IPrxSheet;
table: ITabSheet;
objects: ITabObjects;
Begin
// Open a regular report for edit
mb := MetabaseClass.Active;
regrep := mb.ItemById("Regular_Report_MSIDX").Edit As IPrxReport;
// Get chart from regular report
sheet := regrep.Activesheet;
table := sheet.Table;
objects := table.Objects;
chart := objects.Item(0).Extension As IChart;
// For the first, third, fifth series extend the main series
chart.Series.Item(0).MasterSerieIdx := 1;
chart.Series.Item(2).MasterSerieIdx := 3;
chart.Series.Item(4).MasterSerieIdx := 5;
// Save changes
(regrep As IMetabaseObject).Save;
End Sub UserProc;
After executing the example the first, third and fifth chart series are merged with the fourth and sixth ones.
The requirements and result of the Fore.NET example execution match with those in the Fore example.
Imports Prognoz.Platform.Interop.Chart;
Imports Prognoz.Platform.Interop.Report;
Imports Prognoz.Platform.Interop.Tab;
…
Public Shared Sub Main(Params: StartParams);
Var
mb: IMetaBase;
regrep: IPrxReport;
chart: IChart;
sheet: IPrxSheet;
table: ITabSheet;
objects: ITabObjects;
Begin
// Open a regular report for edit
mb := Params.Metabase;
regrep := mb.ItemById["Regular_Report_MSIDX"].Edit() As IPrxReport;
// Get chart from regular report
sheet := regrep.Activesheet;
table := sheet.Table;
objects := table.Objects;
chart := objects.Item[0].Extension As IChart;
// For the first, third, fifth series extend the main series
chart.Series.Item[0].MasterSerieIdx := 1;
chart.Series.Item[2].MasterSerieIdx := 3;
chart.Series.Item[4].MasterSerieIdx := 5;
// Save changes
(regrep As IMetabaseObject).Save();
End Sub;
See also: