Title: [BUG]; Changing `layout.ternary.sum` via `relayout` makes `scatterternary` data stale · Issue #8127 · plotly/plotly.js · GitHub
Open Graph Title: [BUG]; Changing `layout.ternary.sum` via `relayout` makes `scatterternary` data stale · Issue #8127 · plotly/plotly.js
X Title: [BUG]; Changing `layout.ternary.sum` via `relayout` makes `scatterternary` data stale · Issue #8127 · plotly/plotly.js
Description: Description Changing layout.ternary.sum with Plotly.relayout does not recalculate scatterternary data. But scatterternary/calc.js depends on ternary.sum both to infer a missing component and to normalize a, b, and c. However, layout.tern...
Open Graph Description: Description Changing layout.ternary.sum with Plotly.relayout does not recalculate scatterternary data. But scatterternary/calc.js depends on ternary.sum both to infer a missing component and to nor...
X Description: Description Changing layout.ternary.sum with Plotly.relayout does not recalculate scatterternary data. But scatterternary/calc.js depends on ternary.sum both to infer a missing component and to nor...
Opengraph URL: https://github.com/plotly/plotly.js/issues/8127
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[BUG]; Changing `layout.ternary.sum` via `relayout` makes `scatterternary` data stale","articleBody":"### Description\n\nChanging `layout.ternary.sum` with `Plotly.relayout` does not recalculate `scatterternary` data.\n\nBut `scatterternary/calc.js` depends on `ternary.sum` both to infer a missing component and to normalize `a`, `b`, and `c`. However, `layout.ternary.sum` currently has `editType: 'plot'`, so changing it redraws the subplot without recalculating the trace.\n\nFor example, with:\n\n```js\na: [0.2],\nb: [0.3]\n```\n\nand the default `ternary.sum: 1`, `c` is inferred as `0.5`.\n\nAfter:\n\n```js\nPlotly.relayout(gd, {\n 'ternary.sum': 100\n});\n```\n\nthe expected inferred value is `99.5`, but the existing calcdata remains based on `c = 0.5`.\n\n### Codepen\n\nhttps://codepen.io/Lexachoc/pen/EaWEpLx\n\n### Expected\n\nChanging `ternary.sum` should recalculate ternary trace data.\n","author":{"url":"https://github.com/Lexachoc","@type":"Person","name":"Lexachoc"},"datePublished":"2026-10-16T15:30:20Z","url":"https://github.com/plotly/plotly.js/issues/8127"}
| 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:dc42d3d4-8ef3-9ac4-9a2f-c0fb949d6a92 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C0B6:172B92:276B9E2:3488190:6B01AF51 |
| html-safe-nonce | 66cba2577d8246bcaf944619453e01512cd4a16e53caaefd7f4071972fbc7eac |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMEI2OjE3MkI5MjoyNzZCOUUyOjM0ODgxOTA6NkIwMUFGNTEiLCJ2aXNpdG9yX2lkIjoiMzg3MTk3MDk3NDQwNTU0ODMzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 0c53d9b0f8765257798a7aeae2f700919d70620cb696f997a8f609f53c7b41f9 |
| hovercard-subject-tag | issue:5886806219 |
| 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/8127/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9967c9acf9217a65d01403ba98e6152db1c8b27fb7aadf9daaa5f0027af9cdc3/plotly/plotly.js/issues/8127 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9967c9acf9217a65d01403ba98e6152db1c8b27fb7aadf9daaa5f0027af9cdc3/plotly/plotly.js/issues/8127 |
| og:image:alt | Description Changing layout.ternary.sum with Plotly.relayout does not recalculate scatterternary data. But scatterternary/calc.js depends on ternary.sum both to infer a missing component and to nor... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Lexachoc |
| 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