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

Can't handle more than one series #5

Closed
thoran opened this issue Jan 30, 2013 · 2 comments
Closed

Can't handle more than one series #5

thoran opened this issue Jan 30, 2013 · 2 comments

Comments

@thoran
Copy link

thoran commented Jan 30, 2013

Given the following, the second will overwrite the first...

chart.series(name: 'foo', ...)
chart.series(name: 'bar', ...)

Highcharts allows for the provision of multiple series, but this Ruby interface doesn't. I'm guessing you didn't need that?

While I am working on a fix which adds an array to Highcharts::Series, and requires a change to the Highcharts class to handle series differently, if you get to it first however...

@agrobbin
Copy link
Owner

You can add more than one series by passing it an array:

chart.series [{name: 'foo', data: {...}}, {name: 'bar', data: {...}}]

@thoran
Copy link
Author

thoran commented Jan 31, 2013

Thanks for the prompt response, this time and last.

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

No branches or pull requests

2 participants