Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Implement sparkline graphs #993

Closed
peterbrescia opened this issue Aug 24, 2015 · 6 comments
Closed

Feature request: Implement sparkline graphs #993

peterbrescia opened this issue Aug 24, 2015 · 6 comments

Comments

@peterbrescia
Copy link

In the roadmap, last updated over a year ago, it says sparklines will be added as a graph type somewhere in version 2. Is this still a planned feature, and if so is there a specific version that this is likely to be included in?

Sparklines, especially if featuring a summary statistic like a percentage change, would be a very useful feature!

@gordonwoodhull
Copy link
Contributor

Sorry, that was added by a previous maintainer who is no longer here, so I'm not entirely sure what was intended.

Aren't sparklines just small charts in spans without any axes?

@peterbrescia
Copy link
Author

Apologies for not being clearer. Yes, sparklines are just small charts with no axes. The thing about summary statistics is tangential and unrelated to this.

@gordonwoodhull
Copy link
Contributor

I think this functionality is available and we just need a decent example. It would take some troubleshooting, mostly.

The summary statistic can be done with a renderlet or pretransition hook, too, say adding a highlighted point and some text.

@edmapd
Copy link

edmapd commented Feb 6, 2016

@gordonwoodhull here's an example from excel if helpful

sparklines.xlsx
sparkline excel

Also, thoughts from the originator of the idea: http://www.edwardtufte.com/bboard/q-and-a-fetch-msg?msg_id=0001OR

@gordonwoodhull
Copy link
Contributor

Thanks @edmapd, I'm a fan and have read the books.

All that is required here is

  • to use a span instead of a div for the chart
  • use very small width and height
  • a little CSS to hide the axes

Here's an example. Note it has some very stupid filtering between the charts, just to show that's possible.

@edmapd
Copy link

edmapd commented Feb 8, 2016

Very nice!

The filtering is adorable :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants