IChartSerie.StepLineType

Fore Syntax

StepLineType: ChartSerieStepLineType;

Fore.NET Syntax

StepLineType: Prognoz.Platform.Interop.Chart.ChartSerieStepLineType;

Description

The StepLineType property determines stepped series type.

Comments

A stepped chart displays absolute series value. Step is a curve connecting two neighboring series values.

To set a stepped chart type, set IChart.Type = ChartType.StepLine.

Fore Example

Executing the example requires a regular report with the StepLineType identifier. The active sheet of the regular report must contain a chart.

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

Sub UserProc;
Var
    mb: IMetabase;
    Report: IPrxReport;
    Chart: IChart;
    Series: IChartSerie;
Begin
    mb := MetabaseClass.Active;
    Report := mb.ItemById(
"StepLineType").Edit As IPrxReport;
    Chart := (Report.ActiveSheet 
As IPrxTable).TabSheet.Objects.Item(0).Extension As IChart;
    Chart.Type := ChartType.StepLine; 
// Stepped chart
    Series := Chart.Series.Item(0);
    Series.StepLineType := ChartSerieStepLineType.Center;
    (Report 
As IMetabaseObject).Save;
End Sub UserProc;

After executing the example the regular report chart changes its type for stepped one, the step is located in the middle of the line between neighboring series points.

Fore.NET Example

The requirements and result of the Fore.NET example execution match with those in the Fore example.

Imports Prognoz.Platform.Interop.Report;
Imports Prognoz.Platform.Interop.Chart;

Public Shared Sub Main(Params: StartParams);
Var
    mb: IMetabase;
    Report: IPrxReport;
    Chart: IChart;
    Series: IChartSerie;
Begin
    mb := Params.Metabase;
    Report := mb.ItemById[
"StepLineType"].Edit() As IPrxReport;
    Chart := (Report.ActiveSheet 
As IPrxTable).TabSheet.Objects.Item[0].Extension As IChart;
    Chart.Type := ChartType.chtStepLine; 
// Stepped chart
    Series := Chart.Series.Item[0];
    Series.StepLineType := ChartSerieStepLineType.csslCenter;
    (Report 
As IMetabaseObject).Save();
End Sub;

See also:

IChartSerie