TXlsxChart.SetTrendline Method
Gets a trendline for a chart. This method is only implemented for xlsx charts.
Syntax
Unit: FlexCel.XlsAdapter
procedure TXlsxChart.SetTrendline(const chartIndex: Integer; const seriesIndex: Integer; trendline: IChartTrendline);
Parameters
<-> | Parameter | Type | Description |
---|---|---|---|
const | chartIndex | Integer | Index of the chart (1 based). Must be bigger than 0 and less-or-equal than IExcelChart.SubchartCount |
const | seriesIndex | Integer | Index of the series in the chart (1 based). Must be bigger than 0 and less-or-equal than IExcelChart.SeriesInSubchart |
trendline | IChartTrendline | Trendline definition. |