phibr0 / obsidian-charts

Charts - Obsidian Plugin | Create editable, interactive and animated Charts in Obsidian via Chart.js
https://charts.phib.ro/
GNU Affero General Public License v3.0
568 stars 26 forks source link

Line of best fit (Linear Regression) #65

Closed Wemmy0 closed 1 year ago

Wemmy0 commented 1 year ago

Describe the feature

Add a flag to automatically create a line of best fit for a line.

Does this fix a problem? If so, specify.

no

Did you consider other alternatives?

This can be manually done using a website like https://www.socscistatistics.com/tests/regression/default.aspx (which uses linear regression using the least squares method. And you can make a result like this by taking the calculated line equation and substituting the x values: image However, it would be a lot nicer if this was just a flag

Screenshots and recordings

Example of possible implementation: image