Skip to content

Expose Plotly.restyle #25

@bradpe

Description

@bradpe

Exposing restyle allows for updating styles on the chart without having to update all of the data.

ie. change the color or size of a marker when clicked.

Activity

bpostlethwaite

bpostlethwaite commented on Dec 27, 2017

@bpostlethwaite
Member

We are planning on introducing a lower level Plotly.react call which will power this component. It will be smart about applying updates. That way users will not have to think in terms of efficiently applying the plotly.js API and think only about sending in new data.

It will be arriving sometime in 2018 Q1.

cc @alexcjohnson

nicolaskruchten

nicolaskruchten commented on Jan 23, 2018

@nicolaskruchten
Contributor

See #2 for followup on Plotly.react

nicolaskruchten

nicolaskruchten commented on Feb 12, 2018

@nicolaskruchten
Contributor

Good news! The Plotly.react method is implemented in plotly.js version 1.34.0 and this React wrapper already takes advantage of it, so just upgrade plotly.js and things should be more reactive!

This should address most or all cases where restyle or relayout would have been useful, although I'd love to know if this doesn't meet your needs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @nicolaskruchten@bpostlethwaite@bradpe

        Issue actions

          Expose Plotly.restyle · Issue #25 · plotly/react-plotly.js