IChartSerieBase.StepLineType

Syntax

StepLineType: ChartSerieStepLineType;

Description

The StepLineType property determines a 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.

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.

See also:

IChartSerieBase