Text: String;
The Text property specifies whether custom text is to be used for a trend line.
To specify a custom text you need to set the UseAutomaticText property to False.
This example assumes that there is the Chart object of the IChart type.
Sub TrendLine;
Var
Chart: IChart;
Begin
Chart.Series.Item(0).TrendLines.Item(0).Text := "trendline";
End Sub TrendLine;
After executing the example the chart legend displays the specified text for the trend line.
See also: