Custom TrendLine

To implement a custom trendline a class implementing ICustomTrendLine interface must be created. The instance of this class is assigned to CustomTrendLine property of a TrendLine object. In this case all points of trendline must be fully defined by the class and TrendLineType property setting is not relevant. The following sample code implements a custom TrendLine that corresponds to data limits.

      Visual Basic

      C#

This topic illustrates the following:

A custom red dashed trend line is created around the data points.

 


Send us comments about this topic.
Copyright © GrapeCity, inc. All rights reserved.