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

initial data in a sparkline? #25

Open
shannoncruey opened this issue May 19, 2014 · 1 comment
Open

initial data in a sparkline? #25

shannoncruey opened this issue May 19, 2014 · 1 comment

Comments

@shannoncruey
Copy link

I haven't dug deep into the code to figure this out, but I've struggled a bit to figure out how to pre-populate a sparkline with initial trend data. I'd like, on page load, for a set of historical data to be loaded, and then continue with the live feed.

I have the historical array, it's just the right way (if one even exists) to load it isn't evident to me.

If this isn't available then cool, I'll figure it out.

This is awesome btw... thanks so much!
S

@jheising
Copy link
Contributor

It's not available out of the box, but I think it would be cool to add as a feature. We'll add it as feature request.

In the meantime you could hook in the data into the sparkline via this: http://omnipotent.net/jquery.sparkline/#s-docs

Essentially you just add numbers between the SPAN element.

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

2 participants