chartjs / Chart.js

Simple HTML5 Charts using the <canvas> tag
https://www.chartjs.org/
MIT License
64.48k stars 11.89k forks source link

add option to show arithmetic moving average like excel graph #11314

Open insinfo opened 1 year ago

insinfo commented 1 year ago

Feature Proposal

add option to show arithmetic moving average like excel graph

image image

Possible Implementation

No response

stockiNail commented 1 year ago

@insinfo this could be done adding a specific dataset where the data are the forecast/average (or whatever other calculation).

Another possible option is to use the regression plugin https://github.com/pomgui/chartjs-plugin-regression even if this plugin doesn't work with Chart,js greater or equals than version 3

stockiNail commented 1 year ago

@insinfo I forgot to mention https://github.com/Makanz/chartjs-plugin-trendline, another plugin which could address your use case