Hi,
is it possible to draw trending line using chartjs?
the line chart can just plot a point according to the label and data.
Thanks
Any updates on this? Would be nice to automatically draw trend lines on bar charts for a clearer trend visual.
+1
I imagine something like this might be in version 2.0?
If the original request is to support lines and bars together on the same chart, this is supported in version 2.0.
Closing since line and bar combo charts are natively supported in v2. See https://jsfiddle.net/45459ou6/1/ for a demo
I dont believe this was asking for the feature to combine lines and bar charts, I believe this was a request to automatically calculate trendlines to an existing chart. I suppose the real mechanic is calculating the beginning and ending points of the trendline, based on chart data.
I think it would be great that Chart,js would include natively trend lines. That is much needed for data analysis.
What stratigos said; part of what would make the feature useful would be calculating it for you instead of having to do it by hand
+1 on getting this feature on chart.js
FYI: this plugin works quite well https://www.npmjs.com/package/chartjs-plugin-trendline
Most helpful comment
FYI: this plugin works quite well https://www.npmjs.com/package/chartjs-plugin-trendline