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

Fixup pie/sunburst unhover post plot/calc restyle calls #3662

Merged
merged 2 commits into from
Mar 28, 2019

Conversation

etpinard
Copy link
Contributor

fixes #3618 and another (pretty bad) pie bug, to be merged into the sunburst PR in #3594

Updated jsbin: https://output.jsbin.com/lesidaxoru/1

cc @plotly/plotly_js

@etpinard etpinard added bug something broken status: reviewable labels Mar 22, 2019
@@ -16,8 +16,7 @@ exports.name = 'pie';
exports.plot = function(gd) {
var Pie = Registry.getModule('pie');
var cdPie = getModuleCalcData(gd.calcdata, Pie)[0];

if(cdPie.length) Pie.plot(gd, cdPie);
Pie.plot(gd, cdPie);
Copy link
Contributor

Choose a reason for hiding this comment

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

@etpinard Could you please elaborate why the condition check is no longer required here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Because we need Pie.plot to .exit().remove() the old pie traces.

@archmoj
Copy link
Contributor

archmoj commented Mar 22, 2019

@etpinard Thanks.
Looks very good.
💃

@etpinard etpinard merged commit a7561ec into sunburst Mar 28, 2019
@etpinard etpinard deleted the pie-sunburst-unhover-post-restyle branch March 28, 2019 17:45
etpinard added a commit that referenced this pull request Mar 28, 2019
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.

None yet

2 participants