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

Ternary restyle fix #540

Merged
merged 2 commits into from
May 16, 2016
Merged

Ternary restyle fix #540

merged 2 commits into from
May 16, 2016

Conversation

mdtusz
Copy link
Contributor

@mdtusz mdtusz commented May 16, 2016

Ternary plots were not being restyled when a, b, c were updated. This remedies it in the simplest possible way.

I can't think of a much better way to test this - it's not a great test, but it is better than nothing, and will still check that the plotted points have changed.

transforms.push(point.attr('transform'));
});

expect(transforms).toEqual([
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's fine. But, checking the content of gd.calcdata would have sufficed.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's what I thought as well, but calcdata was being updated before the change, while the plot wasn't (unless I was bitten by the devtool watcher gremlin).

@etpinard
Copy link
Contributor

💃

@mdtusz mdtusz merged commit 2fcde64 into master May 16, 2016
@mdtusz mdtusz deleted the ternary-restyle-fix branch May 17, 2016 21:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants