开发者

Add weighted average line to flot point chart?

开发者 https://www.devze.com 2023-04-08 18:34 出处:网络
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

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号