Skip to content

Support empty first series in stack#415

Merged
dchester merged 2 commits into
shutterstock:masterfrom
dwt:support-empty-first-series-in-stack
Apr 2, 2014
Merged

Support empty first series in stack#415
dchester merged 2 commits into
shutterstock:masterfrom
dwt:support-empty-first-series-in-stack

Conversation

@dwt

@dwt dwt commented Mar 26, 2014

Copy link
Copy Markdown
Contributor

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

dwt commented Mar 27, 2014

Copy link
Copy Markdown
Contributor Author

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

dchester commented Apr 2, 2014

Copy link
Copy Markdown
Contributor

Do you like it?

Indeed -- very creative!

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

dwt commented Apr 2, 2014

Copy link
Copy Markdown
Contributor Author

:-)

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