Skip to content

Ternary restyle fix - #540

Merged
mdtusz merged 2 commits into
masterfrom
ternary-restyle-fix
May 16, 2016
Merged

mdtusz merged 2 commits into
masterfrom
ternary-restyle-fix

Conversation

@mdtusz

@mdtusz mdtusz commented May 16, 2016

Copy link
Copy Markdown
Contributor

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.

@mdtusz
mdtusz force-pushed the ternary-restyle-fix branch from 44b4e70 to befac03 Compare May 16, 2016 21:40
transforms.push(point.attr('transform'));
});

expect(transforms).toEqual([

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants