Reference > Style examples > Trendline spans data range

Trendline spans data range

The fitted line is not extended beyond the extreme points on the x-axis


// Set equation under the chart and span the reqression line
 sp.EquationStyle = EquationStyles.Middle|EquationStyles.Below|EquationStyles.SpanData;
 sp.EquationFormat = "y = C0 + C1x";

This may be a useful setting if several regressions are made through subsets of the data.


Send comments on this topic
© Dyalog Ltd 2013