Skip to content

Support displaying multiple series in a sparkline #11

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

Merged
merged 7 commits into from
Jan 13, 2020

Conversation

diosmosis
Copy link
Contributor

This change allows specifying multiple data series for display in a single sparkline:

image

The change allows specifying line colors & point colors for each series (not fill colors since I didn't have a need for it) and is meant to be backwards compatible.

It allows each series to have a different number of data points, so one series can have 5 values, while another has 10 values. Such a sparkline would look like this:

image

I haven't made any changes to the tests, I may be able to if I can find some time.

@davaxi
Copy link
Owner

davaxi commented Jan 13, 2020

Good job :) Thanks for PR.

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

Successfully merging this pull request may close these issues.

3 participants