TTMSFNCAreaChart.AddTrendLine Method
Adds a linear trend line computed from the series at the given index.
API unit family: TMSFNCChart
Declaring type: TTMSFNCAreaChart
Inherited from: TTMSFNCChart
Syntax
function AddTrendLine(ASerieIndex, AStartX, AEndX: Integer; AUseCommonYRange: Boolean = True; ASerieLineColor: TTMSFNCGraphicsColor = gcBlack; ASerieLineWidth: Integer = 1): TTMSFNCChartSerie;
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.