Skip to content

transforms + Plotly.react bug #2470

Closed
Closed
@alexcjohnson

Description

@alexcjohnson

A user encountered a problem with Plotly.react and transforms, changing pie aggregation & labels simultaneously. The following examples start with A/B/C and switch to X/Y/Z on clicking the button.

Works fine using Plotly.restyle:
https://codepen.io/alexcjohnson/pen/geaRej?editors=0010
screen shot 2018-03-12 at 5 23 07 pm

But not with Plotly.react:
https://codepen.io/alexcjohnson/pen/xWwrXR?editors=0010
screen shot 2018-03-12 at 5 24 20 pm

However Plotly.react works fine using the same aggregation that's built into pies since #2117:
https://codepen.io/alexcjohnson/pen/BroZNx?editors=0010

reported by @Snazzypants in plotly/react-plotly.js#62

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugsomething broken

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions