JavaScript Chart - Trend LineMoving Average Trend Line in Line Chart

VIEW MORE FEATURES
SAVE
VIEW HTML
EDIT ON CODEPEN
The trendline can be displayed on the chart created by using KoolChart's JavaScript charting library. 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">