Skip to content

Fix stack with gaps bar height bug #716

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 6 commits into from
Jul 6, 2016
Merged

Fix stack with gaps bar height bug #716

merged 6 commits into from
Jul 6, 2016

Conversation

etpinard
Copy link
Contributor

@etpinard etpinard commented Jul 5, 2016

fixes #627

In brief, we must skip over bars with non-numeric sizes in the setPositions step now.

Before commit dd2251d bars with non-numeric sizes were excluded from the gd.calcdata. This, in turn, led to wrong bar widths in bar traces containing gaps. However, commit dd2251d made Bar.setPositions attempt to stack non-numeric bars as described in #627. More info in b7f7944 .

Moreover, this PR adds a few features to our custom jasmine matchers. Namely, toBeCloseToArray and toBeCloseTo2DArray can now display per-call extra message and does not try to compute the distance between non-numeric elements in arrays.

@mdtusz
Copy link
Contributor

mdtusz commented Jul 6, 2016

Nice code:test ratio!

💃

@etpinard etpinard merged commit 46bbbae into master Jul 6, 2016
@etpinard etpinard deleted the fix-bar-height-bug branch July 6, 2016 17:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something broken
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Stacked bar plot not stacking, sometimes just overlapping
2 participants