chartjs-plugin-trendline icon indicating copy to clipboard operation
chartjs-plugin-trendline copied to clipboard

Adding gradient information for the trendline

Open volokh1 opened this issue 4 years ago • 2 comments

I have added the trendline, but the most interesting information for me is its slope/gradient. Could it possible to make this information available so I can not only draw the trendline but also display the value of its gradient?

Thanks a lot!

volokh1 avatar Sep 07 '21 17:09 volokh1

I don´t have any plans to add this information but feel free to contribute with a PR if you have the possibility.

Makanz avatar Oct 17 '21 19:10 Makanz

I think that you can access it via the scale property: https://github.com/Makanz/chartjs-plugin-trendline/blob/6601aae9a7d4c7b0129699a4d48cacbc23d66f93/src/chartjs-plugin-trendline.js#L200-L205

shkuviak avatar Mar 25 '23 13:03 shkuviak