c3js / c3

:bar_chart: A D3-based reusable chart library
http://c3js.org
MIT License
9.34k stars 1.39k forks source link

Feature request: Sparklines as an example using C3 #2339

Open aravindhsampath opened 6 years ago

aravindhsampath commented 6 years ago

C3 has been great for our performance charts. I'm building a overview dash and would love to have a sparkline chart showing the activity for the last hour/week. I don't see an example of doing this with C3. It would make a nice addition to the examples on the main page.

I'm not versed with JS to be able to create one and send a pull request. If anybody takes a crack at it, I think it will be very useful. Example using D3: http://bl.ocks.org/benjchristensen/1148374

Thanks for C3.

pchaganti commented 6 years ago

👍

panthony commented 6 years ago

I'm doing something similar already by using a line chart where I hide everything:

capture d ecran 2018-04-06 a 08 02 48

Could be enough of a workaround for now

aravindhsampath commented 6 years ago

Any chance you could share your line chart? It looks neat!

panthony commented 6 years ago

@aravindhsampath This is simply a chart with everything disabled:

http://jsfiddle.net/rkdhpwkg/

No magic here !

The -67% is not part of the chart.