Title: a version of .newPlot that does the .update logic behind the scenes · Issue #1850 · plotly/plotly.js · GitHub
Open Graph Title: a version of .newPlot that does the .update logic behind the scenes · Issue #1850 · plotly/plotly.js
X Title: a version of .newPlot that does the .update logic behind the scenes · Issue #1850 · plotly/plotly.js
Description: In Dash, I'd like the Graph component to do smart restyle and relayout updates when I call newPlot or plot (or some new method). Dash users deal with figures and not diffs. Programming this logic myself is a lot of work that other groups...
Open Graph Description: In Dash, I'd like the Graph component to do smart restyle and relayout updates when I call newPlot or plot (or some new method). Dash users deal with figures and not diffs. Programming this logic m...
X Description: In Dash, I'd like the Graph component to do smart restyle and relayout updates when I call newPlot or plot (or some new method). Dash users deal with figures and not diffs. Programming this log...
Opengraph URL: https://github.com/plotly/plotly.js/issues/1850
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"a version of .newPlot that does the .update logic behind the scenes","articleBody":"In Dash, I'd like the Graph component to do smart `restyle` and `relayout` updates when I call `newPlot` or `plot` (or some new method). Dash users deal with `figure`s and not diffs.\r\n\r\nProgramming this logic myself is a lot of work that other groups could benefit from if it was done centrally in plotly.js. I wrote a lot of the logic in the workspace and it took a while to work through all the kinks. Some of the edge cases included:\r\n- calling `newPlot` instead of `update` at the start\r\n- calling `addTraces` manually instead of `update`\r\n- calling `newPlot` instead of `update` when switching between 2D, 3D, or ternary\r\n- calling `newPlot` when switching to a financial chart type\r\n- deleting cartesian axes when swithing to ternary or mapbox\r\n\r\n[Here is that code](https://github.com/plotly/streambed/blob/master/shelly/filewell/static/filewell/src/components/workspace/panels/PlotPanel.react.js#L367-L613)\r\n\r\nThis would form the basis of a plotly.js React component.\r\n\r\nDash users will benefit from this immediately with:\r\n- Faster updates enabling their apps to refresh every 50ms and mimic live-streaming\r\n- Mapbox updates with full map redraws\r\n\r\nIdeally, this logic would work its way into a robust `.animate` method as well ([.animate method that can handle any type of figure diff #1849](https://github.com/plotly/plotly.js/issues/1849))\r\n\r\n***\r\n\r\ncc @rreusser @alexcjohnson @etpinard @cpsievert @monfera @jackparmer","author":{"url":"https://github.com/chriddyp","@type":"Person","name":"chriddyp"},"datePublished":"2017-07-04T17:43:18.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":11},"url":"https://github.com/1850/plotly.js/issues/1850"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:0c35abf0-4fe2-81e8-46cd-e9dc9e1ce6e6 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CA00:35E4DB:2623D66:34727E8:6A56CB82 |
| html-safe-nonce | ab80db61ce724370730e5aeb32160e343c353bf8decca7b2b2dc35e02d647b44 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQTAwOjM1RTREQjoyNjIzRDY2OjM0NzI3RTg6NkE1NkNCODIiLCJ2aXNpdG9yX2lkIjoiNzkwMDk4MzUwMTUwNDM3NzYyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 9d7cf00fa2e2c1b8001899a63fbb3b664c7c96a2198714a9c6d84899a12167f3 |
| hovercard-subject-tag | issue:240474171 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/plotly/plotly.js/1850/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ceb375df9ce086ec3981f54ea8983c188aea8d0ad67a34dfc6a58741a8c36fee/plotly/plotly.js/issues/1850 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ceb375df9ce086ec3981f54ea8983c188aea8d0ad67a34dfc6a58741a8c36fee/plotly/plotly.js/issues/1850 |
| og:image:alt | In Dash, I'd like the Graph component to do smart restyle and relayout updates when I call newPlot or plot (or some new method). Dash users deal with figures and not diffs. Programming this logic m... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | chriddyp |
| hostname | github.com |
| expected-hostname | github.com |
| None | df99b7164e1d961b639cf5d3cbd6b5ba673edc67bd7e47cdc4746b96099e11ae |
| turbo-cache-control | no-preview |
| go-import | github.com/plotly/plotly.js git https://github.com/plotly/plotly.js.git |
| octolytics-dimension-user_id | 5997976 |
| octolytics-dimension-user_login | plotly |
| octolytics-dimension-repository_id | 45646037 |
| octolytics-dimension-repository_nwo | plotly/plotly.js |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 45646037 |
| octolytics-dimension-repository_network_root_nwo | plotly/plotly.js |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 3146ab55fc8763ab0e1d2a875e600b3a545bc751 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width