This macro draws a trend line across a specified series.
SYNTAX:
@TRENDLINE nSeries nValue nWidth nStyle
PARAMETERS:
nSeries; 0...511 Series (0=Series 1) to apply the trend line.
nValue; Bitwise flags (0...127) to activate one or more of the following trend lines:
1 = MEAN
2 = Standard Deviation
4 = Linear Regression
8 = Natural Log Regression
16 = Polynomial Regression
32 = Exponential Regression
64 = Log Regression
nWidth; 0...1000 selects the width of the line.
nStyle; 0...15 selects one of the following line styles.
![]()
EXAMPLE: @TRENDLINE2.RPT
@TRENDLINE2 0 8 500 2
PERSISTENT:
YES
REQUIREMENTS:
- Crystal Reports 11 or higher
ALSO SEE:
@MOVA; to draw a moving average line
@TRENDLINE_ALLDATA to draw a linear regression line through all data points in a chart