Chart.js: Sparklines ?

Created on 18 Mar 2013  ·  11Comments  ·  Source: chartjs/Chart.js

Would be great to add sparkline charts ... please see http://public.tableausoftware.com/static/images/no-vis-available.htm?static=bandlines/0-Intro.png&msg=1

Most helpful comment

No need for a new Chart type.
Here's an example using Line: https://codepen.io/Shywim/pen/xXYror

All 11 comments

sure you're not looking for something like http://omnipotent.net/jquery.sparkline/

Yes, seen that one. Thought it will be great to have it all in one plugin or library.

:+1:

You could just make a small line chart...

:+1:

:+1:
:+1:
:+1:

This would be another great opportunity for someone to create a new chart type extension to the library. See http://www.chartjs.org/docs/#advanced-usage-writing-new-chart-types for some details.

Potentially you could just extend the Chart.types.Line to not show a scale, and not show a dot for each point?

still not Sparklines here

No need for a new Chart type.
Here's an example using Line: https://codepen.io/Shywim/pen/xXYror

Sparklines can provide additional data in a very economical way: mark the highest, lowest, latest value with dots, indicate a base line or "normal" range etc.

How could one approach these?

https://www.edwardtufte.com/bboard/q-and-a-fetch-msg?msg_id=0001OR

Sparkline_marginal_note

0001OS-15658

Was this page helpful?
0 / 5 - 0 ratings