Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions draftlogs/8128_fix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Fix `ternary.sum` relayout to recalculate ternary trace data [[#8128](https://github.com/plotly/plotly.js/pull/8128)]
3 changes: 3 additions & 0 deletions src/plots/ternary/layout_attributes.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion test/plot-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
Loading