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

Support empty first series in stack #415

Merged

Conversation

dwt
Copy link
Contributor

@dwt dwt commented Mar 26, 2014

When using the RangeSlider on a graph with data of different lengths of series, it can easily happen that the displayed region is one where some of the series have no data.

If this happens to be the first series, then Rickshaw will barf, as it's internal domain() calculation cannot cope with that.

This patch expands the power of the domain() calculation and adds some lenience into the validation routine of Rickshaw.Graph to make it easier to unit test that situation.

This pull request probably obsoletes /pull/244 and closes /issues/122.

Do you like it?

Do you want any changes in implementation to accept this?

Best regards,
Martin

dwt added 2 commits March 26, 2014 14:22
This can easily happen when series of different length are drawn and the RangeSlider is used to restrict the graph to a range where one of the series is empty.
@dwt
Copy link
Contributor Author

dwt commented Mar 27, 2014

Any chance you can also take a look at this while you're at it? :)

dchester added a commit that referenced this pull request Apr 2, 2014
@dchester dchester merged commit 55f649c into shutterstock:master Apr 2, 2014
@dchester
Copy link
Contributor

dchester commented Apr 2, 2014

Do you like it?

Indeed -- very creative!

@dwt dwt deleted the support-empty-first-series-in-stack branch April 2, 2014 20:20
@dwt
Copy link
Contributor Author

dwt commented Apr 2, 2014

:-)

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.

validateSeries assumes data exists
2 participants