Trend LineMoving Average Trend Line in Line Chart

VIEW MORE FEATURES
VIEW HTML
EDIT ON CODEPEN
To display the trendline on the chart, the showTrendLine attribute on the series element must be set to true. In this example, the trendline type (trendLineType) is set to movingAverage.
<Line2DSeries labelPosition="up" yField="Vancouver" displayName="Vancouver" showTrendLine="true" trendLineType="movingAverage">