Skip to main content
Table of Contents

TTMSFNCPieChart.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: TTMSFNCPieChart Inherited from: TTMSFNCChart

Syntax

FMX.TMSFNCChart.hppPascalC++
function AddLineSerie(AStartX, AEndX: Integer; AStartValue, AEndValue: Double; AUseCommonYRange: Boolean = True; ASerieLineColor: TTMSFNCGraphicsColor = gcBlack; ASerieLineWidth: Integer = 1): TTMSFNCChartSerie;
TTMSFNCChartSerie* __fastcall AddLineSerie(int AStartX, int AEndX, double AStartValue, double AEndValue, bool AUseCommonYRange = true, TTMSFNCGraphicsColor ASerieLineColor = (System::Uitypes::TAlphaColor)(0xff000000), int ASerieLineWidth = 0x1);

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.