Title: Plotly.react should autosize · Issue #2385 · plotly/plotly.js · GitHub
Open Graph Title: Plotly.react should autosize · Issue #2385 · plotly/plotly.js
X Title: Plotly.react should autosize · Issue #2385 · plotly/plotly.js
Description: A difference in result between Plotly.newPlot and Plotly.react - the latter doesn't pick up changes in the DOM that affect autosizing the plot. It should, as these two methods should always yield the same result regardless of their histo...
Open Graph Description: A difference in result between Plotly.newPlot and Plotly.react - the latter doesn't pick up changes in the DOM that affect autosizing the plot. It should, as these two methods should always yield t...
X Description: A difference in result between Plotly.newPlot and Plotly.react - the latter doesn't pick up changes in the DOM that affect autosizing the plot. It should, as these two methods should always yie...
Opengraph URL: https://github.com/plotly/plotly.js/issues/2385
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Plotly.react should autosize","articleBody":"A difference in result between `Plotly.newPlot` and `Plotly.react` - the latter doesn't pick up changes in the DOM that affect autosizing the plot. It should, as these two methods should always yield the same result regardless of their histories.\r\n\r\nOriginal report: https://github.com/plotly/react-plotly.js/issues/41\r\n\r\nProbably just need to pull in the [autosize handling](https://github.com/plotly/plotly.js/blob/ce5bc971770daaf3ed60d374f23a8af1bb61fe0b/src/plot_api/plot_api.js#L2053-L2064) from `relayout` into `react` as well.","author":{"url":"https://github.com/alexcjohnson","@type":"Person","name":"alexcjohnson"},"datePublished":"2018-02-20T14:21:08Z","url":"https://github.com/plotly/plotly.js/issues/2385"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:dc91b6e5-0616-a2b5-18d0-a4b5c0b608d8 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B96A:3CBB3E:C2BF20:F6DE4A:6B013902 |
| html-safe-nonce | 79ce0e8027ee00e33e655dfcbbff5a422e84dc3b9054396d1973d35e4f7b5d24 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOTZBOjNDQkIzRTpDMkJGMjA6RjZERTRBOjZCMDEzOTAyIiwidmlzaXRvcl9pZCI6IjgwMDE5NzA4MzY3NDEzNzIxNjIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 96acf154260b6bdb911d6b4e6e3caa868b24ca9f388754a1485005d2f7369450 |
| hovercard-subject-tag | issue:298610946 |
| 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/2385/issue_layout |
| twitter:image | https://opengraph.githubassets.com/17bf1fcacaa3060622bfa757287360e081affb9f47704336519d60c42f5d9e59/plotly/plotly.js/issues/2385 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/17bf1fcacaa3060622bfa757287360e081affb9f47704336519d60c42f5d9e59/plotly/plotly.js/issues/2385 |
| og:image:alt | A difference in result between Plotly.newPlot and Plotly.react - the latter doesn't pick up changes in the DOM that affect autosizing the plot. It should, as these two methods should always yield t... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | alexcjohnson |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| 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 | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width