Title: Plotly.react and scattergl · Issue #3405 · plotly/plotly.js · GitHub
Open Graph Title: Plotly.react and scattergl · Issue #3405 · plotly/plotly.js
X Title: Plotly.react and scattergl · Issue #3405 · plotly/plotly.js
Description: I've been trying to update a plot containing scattergl traces dynamically with Plotly.react. However, I've found that in some cases, some of the points are missing and I get a "glDrawElements: attempt to access out of range vertices in a...
Open Graph Description: I've been trying to update a plot containing scattergl traces dynamically with Plotly.react. However, I've found that in some cases, some of the points are missing and I get a "glDrawElements: atte...
X Description: I've been trying to update a plot containing scattergl traces dynamically with Plotly.react. However, I've found that in some cases, some of the points are missing and I get a "glDrawE...
Opengraph URL: https://github.com/plotly/plotly.js/issues/3405
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Plotly.react and scattergl","articleBody":"I've been trying to update a plot containing scattergl traces dynamically with Plotly.react.\r\n\r\nHowever, I've found that in some cases, some of the points are missing and I get a \"glDrawElements: attempt to access out of range vertices in attribute 0\" error in the console.\r\n\r\nI've isolated a minimal example of this at the following codepen:\r\n-- https://codepen.io/anon/pen/JwvEgE\r\n\r\nWhat this codepen is doing:\r\n\r\na) Create a plot with a single scattergl trace with N points (with Plotly.newPlot)\r\nb) Update this plot to instead contain a scattergl trace with M points (with Plotly.react)\r\n\r\nIn the final plot, the trace has many points not rendering for me (on up-to-date Chrome 71.0.3578.98). \r\n\r\nThis issue is unusual in that it seems to depend on the precise number of points in each trace. I've done some experiments, and it seems like it only occurs when (N > 10,000) and (M \u003c= 10,000), which makes me think that perhaps arrays are being handled differently based on their size and something incompatible is resulting.\r\n\r\nI know a different Plotly.react + scattergl issue was reported before, but that one seemed to be a bit different.","author":{"url":"https://github.com/deto","@type":"Person","name":"deto"},"datePublished":"2019-01-07T01:04:04Z","url":"https://github.com/plotly/plotly.js/issues/3405"}
| 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:b4477048-ca43-792f-e7b1-a76118ecc550 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A6AC:399E4B:2A9B958:3890DF4:6B01B6A8 |
| html-safe-nonce | ebad857ac34c02e230a2943d2e2d7af6cfc50d3b42291363ab03890444e93a4f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNkFDOjM5OUU0QjoyQTlCOTU4OjM4OTBERjQ6NkIwMUI2QTgiLCJ2aXNpdG9yX2lkIjoiMzE4NTg5MjE4NjYwMDM1NTQ5NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | fb39c5c535fc025accecdaf099c1c69bacc64b40156928ce59cbdad4e4ca01ad |
| hovercard-subject-tag | issue:396314895 |
| 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/3405/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6b84644ab36f4e1a73c5bea9cd8211e28470bda49770dd74882aaabe13f2a0a3/plotly/plotly.js/issues/3405 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6b84644ab36f4e1a73c5bea9cd8211e28470bda49770dd74882aaabe13f2a0a3/plotly/plotly.js/issues/3405 |
| og:image:alt | I've been trying to update a plot containing scattergl traces dynamically with Plotly.react. However, I've found that in some cases, some of the points are missing and I get a "glDrawElements: atte... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | deto |
| 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