Skip to content

Should we add a Plotly.update method? #671

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

Closed
etpinard opened this issue Jun 20, 2016 · 0 comments · Fixed by #875
Closed

Should we add a Plotly.update method? #671

etpinard opened this issue Jun 20, 2016 · 0 comments · Fixed by #875
Labels
feature something new
Milestone

Comments

@etpinard
Copy link
Contributor

etpinard commented Jun 20, 2016

that could update both data and layout at the same time?

Something like:

/**
 * @param {string or HTML element} gd
 * @param {object} traceUpdateObj update object as in Plotly.restyle
 * @param {object} layoutUpdateObj update object as in Plotly.relayout
 * @param {array} traceIndices list of indices as in Plotly.restyle
 */
Plotly.update = function(gd, traceUpdateObj, layoutUpdateObj, traceIndices) { 
  // ...
};

I'm sure that would make folks like @chriddyp, @VeraZab and @armintaheri happy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature something new
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant