Title: BUG: Plotly.restyle gives error if array has empty values · Issue #4031 · plotly/plotly.js · GitHub
Open Graph Title: BUG: Plotly.restyle gives error if array has empty values · Issue #4031 · plotly/plotly.js
X Title: BUG: Plotly.restyle gives error if array has empty values · Issue #4031 · plotly/plotly.js
Description: when Plotly.restyle is called with array with empty values , gives error y: [["Morning", "Afternoon", "Evening", "", ""]] CODE: https://codepen.io/mafar/pen/agMvEO var data = [ { z: [[1, 20, 30, 50, 1], [20, 1, 60, 80, 30], [30, 60, 1, -...
Open Graph Description: when Plotly.restyle is called with array with empty values , gives error y: [["Morning", "Afternoon", "Evening", "", ""]] CODE: https://codepen.io/mafar/pen/agMvEO var data = [ { z: [[1, 20, 30, 50...
X Description: when Plotly.restyle is called with array with empty values , gives error y: [["Morning", "Afternoon", "Evening", "", ""]] CODE: https://codepen.io/...
Opengraph URL: https://github.com/plotly/plotly.js/issues/4031
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"BUG: Plotly.restyle gives error if array has empty values","articleBody":"when ```Plotly.restyle``` is called with array with empty values , gives error \r\n```y: [[\"Morning\", \"Afternoon\", \"Evening\", \"\", \"\"]]```\r\n\r\n\r\n**CODE:** https://codepen.io/mafar/pen/agMvEO\r\n```js\r\nvar data = [\r\n {\r\n z: [[1, 20, 30, 50, 1], [20, 1, 60, 80, 30], [30, 60, 1, -10, 20]],\r\n x: [\"Monday\", \"Tuesday\", \"Wednesday\", \"Thursday\", \"Friday\", \"\", \"\"],\r\n y: [\"Morning\", \"Afternoon\", \"Evening\"],\r\n type: \"heatmap\"\r\n }\r\n];\r\n\r\nPlotly.newPlot(\"myDiv\", data, {}, { showSendToCloud: true });\r\n// Plotly.restyle with empty array values\r\nvar update = {\r\n y: [[\"Morning\", \"Afternoon\", \"Evening\", \"\", \"\"]]\r\n};\r\nPlotly.restyle(\"myDiv\", update, 0);\r\n```\r\n\r\nSee attached image:\r\n\r\n","author":{"url":"https://github.com/Reel-Box","@type":"Person","name":"Reel-Box"},"datePublished":"2019-07-11T08:30:25Z","url":"https://github.com/plotly/plotly.js/issues/4031"}
| 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:08362e33-f1a4-e381-f060-2d06f2abbff5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B7F0:EDA7A:314D5ED:3EA4D46:6B01CE8E |
| html-safe-nonce | 3e1da747c2bee7d17537b1d4f7eb5c90da0e64260c3cdb458ccad8bfda9434a7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCN0YwOkVEQTdBOjMxNEQ1RUQ6M0VBNEQ0Njo2QjAxQ0U4RSIsInZpc2l0b3JfaWQiOiIyNTg1MjkzNDc3NTc1MjQ5NTUwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 6f8e2dfabfe9ada8e33421c952b8b8f857b90e80b7d876c097386e0fa9f5777b |
| hovercard-subject-tag | issue:466743517 |
| 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/4031/issue_layout |
| twitter:image | https://opengraph.githubassets.com/576754cc4ddf29f8d0f59475d88c374c0a91ffbad71f7a9be87d3a75fc214bd7/plotly/plotly.js/issues/4031 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/576754cc4ddf29f8d0f59475d88c374c0a91ffbad71f7a9be87d3a75fc214bd7/plotly/plotly.js/issues/4031 |
| og:image:alt | when Plotly.restyle is called with array with empty values , gives error y: [["Morning", "Afternoon", "Evening", "", ""]] CODE: https://codepen.io/mafar/pen/agMvEO var data = [ { z: [[1, 20, 30, 50... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Reel-Box |
| 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