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

Expose Plotly.restyle #25

Closed
bradpe opened this issue Dec 22, 2017 · 3 comments
Closed

Expose Plotly.restyle #25

bradpe opened this issue Dec 22, 2017 · 3 comments

Comments

@bradpe
Copy link

bradpe commented Dec 22, 2017

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.

@bpostlethwaite
Copy link
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
Copy link
Contributor

See #2 for followup on Plotly.react

@nicolaskruchten
Copy link
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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants