From 8531b9758523e20ed11cd0e214789df2fb14c68e Mon Sep 17 00:00:00 2001 From: Ya-Fan Chen <20377719+Lexachoc@users.noreply.github.com> Date: Fri, 16 Oct 2026 17:25:52 +0200 Subject: [PATCH 1/4] Update attrs.sum.editType to 'calc' Set editType of attrs.sum to 'calc' for normalization. --- src/plots/ternary/layout_attributes.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/plots/ternary/layout_attributes.js b/src/plots/ternary/layout_attributes.js index 752837ca92b..363e6851714 100644 --- a/src/plots/ternary/layout_attributes.js +++ b/src/plots/ternary/layout_attributes.js @@ -98,6 +98,9 @@ var attrs = module.exports = overrideAll({ caxis: ternaryAxesAttrs }, 'plot', 'from-root'); +// ternary.sum is used by calc to normalize +attrs.sum.editType = 'calc'; + // set uirevisions outside of `overrideAll` so we can get `editType: none` attrs.uirevision = { valType: 'any', From fbd0447263741fb46c149474bc66a3d8225ec869 Mon Sep 17 00:00:00 2001 From: Ya-Fan Chen <20377719+Lexachoc@users.noreply.github.com> Date: Fri, 16 Oct 2026 17:34:11 +0200 Subject: [PATCH 2/4] add draftlog --- draftlogs/8128_fix.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 draftlogs/8128_fix.md diff --git a/draftlogs/8128_fix.md b/draftlogs/8128_fix.md new file mode 100644 index 00000000000..a162505cdaf --- /dev/null +++ b/draftlogs/8128_fix.md @@ -0,0 +1 @@ +- Fix `ternary.sum` relayout to recalculate ternary trace data [[#8028](https://github.com/plotly/plotly.js/pull/8028)] From 90fd4791118e8eb4d41d1a7e5e9578e5be01ce74 Mon Sep 17 00:00:00 2001 From: Ya-Fan Chen <20377719+Lexachoc@users.noreply.github.com> Date: Fri, 16 Oct 2026 17:37:28 +0200 Subject: [PATCH 3/4] fix typo in draftlog --- draftlogs/8128_fix.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/draftlogs/8128_fix.md b/draftlogs/8128_fix.md index a162505cdaf..074a5f73357 100644 --- a/draftlogs/8128_fix.md +++ b/draftlogs/8128_fix.md @@ -1 +1 @@ -- Fix `ternary.sum` relayout to recalculate ternary trace data [[#8028](https://github.com/plotly/plotly.js/pull/8028)] +- Fix `ternary.sum` relayout to recalculate ternary trace data [[#8128](https://github.com/plotly/plotly.js/pull/8128)] From 3d8621dcdda5b22978f7f7ad8412bbbc995209df Mon Sep 17 00:00:00 2001 From: Ya-Fan Chen <20377719+Lexachoc@users.noreply.github.com> Date: Fri, 16 Oct 2026 15:44:01 +0000 Subject: [PATCH 4/4] update schema --- test/plot-schema.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/plot-schema.json b/test/plot-schema.json index 4d51312e82d..2783212ffbc 100644 --- a/test/plot-schema.json +++ b/test/plot-schema.json @@ -12427,7 +12427,7 @@ "sum": { "description": "The number each triplet should sum to, and the maximum range of each axis", "dflt": 1, - "editType": "plot", + "editType": "calc", "min": 0, "valType": "number" },