Trendlines Property Example

This example adds a trendline to the specified series and then hides the trendline’s R-squared value.

ChartSpace1.Charts(0).SeriesCollection(0).Trendlines.Add
ChartSpace1.Charts(0).SeriesCollection(0).Trendlines(0).IsDisplayingRSquared = False