I have a scatter (point) chart in jQuery's Flot.
I'd like to add a weighted average line to the point cha开发者_开发知识库rt, as you can do in Excel charts. (Or a logarithmic or similar "line of best fit" would be acceptable, actually.)
Is this possible in Flot?
I can't see anything about it in the docs, but perhaps someone here knows how.
Thanks!
No this isn't something Flot does itself.
You can work out your own line of best fit by doing some simple calculations on your data. You can then plot the result using Flot. The link contains a worked example but is not Flot specific.
精彩评论