Chart.js: Line charts: confidence intervals

Created on 3 Jan 2020  Â·  6Comments  Â·  Source: chartjs/Chart.js

Feature Proposal

The band around the line:
image

Feature Use Case

I'm visualizing ratings over time, these ratings are accompanied by an uncertainty at every point in time.

Possible Implementation

By adding 'up' and 'down' information to points in the datasets, the line charts could include confidence intervals around the lines {x:0, y:10, u:2, d:1}

enhancement

Most helpful comment

All 6 comments

@kurkle Can you explain how this works? What associates the two Band datasets with the Line dataset?

Does this work with more than one line as well?

Its the fill option. Works with more lines too.

@kurkle Oooooh, that makes sense, very cool! Thank you!

You may also be interested in this plugin: https://github.com/datavisyn/chartjs-plugin-error-bars

@benmccann Interesting! I might use this for other visualizations on my site :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

gabrieldesouza picture gabrieldesouza  Â·  3Comments

akashrajkn picture akashrajkn  Â·  3Comments

longboy picture longboy  Â·  3Comments

joebirkin picture joebirkin  Â·  3Comments

JAIOMP picture JAIOMP  Â·  3Comments