Skip to main content
Table of Contents

TTMSFNCBandChart.AddTrendLine Method

Adds a linear trend line computed from the series at the given index.

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

Syntax

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

Parameters

Name Description
ASerieIndex Zero-based index of the source series.
AStartX Starting x-axis point index.
AEndX Ending x-axis point index.
AUseCommonYRange When True, the trend line participates in the common y-range calculation.
ASerieLineColor Stroke color for the trend line.
ASerieLineWidth Stroke width in pixels.

Returns

Returned value.