简体   繁体   中英

Add weighted average line to flot point chart?

I have a scatter (point) chart in jQuery's Flot.

I'd like to add a weighted average line to the point chart, 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM