Table of Contents

TTMSFNCXYLineChart.AddLineSerie Method

Adds a straight line series spanning the given x range with start and end y values; useful for reference lines.

API unit family: TMSFNCChart Declaring type: TTMSFNCXYLineChart Inherited from: TTMSFNCChart

Syntax

function AddLineSerie(AStartX, AEndX: Integer; AStartValue, AEndValue: Double; AUseCommonYRange: Boolean = True; ASerieLineColor: TTMSFNCGraphicsColor = gcBlack; ASerieLineWidth: Integer = 1): TTMSFNCChartSerie;

Parameters

Name Description
AStartX First x-axis point index of the line.
AEndX Last x-axis point index of the line.
AStartValue Y value at the start of the line.
AEndValue Y value at the end of the line.
AUseCommonYRange When True, the line participates in the common y-range calculation.
ASerieLineColor Stroke color for the line.
ASerieLineWidth Stroke width in pixels.

Returns

Returned value.