diff --git a/draftlogs/6304_change.md b/draftlogs/6304_change.md new file mode 100644 index 00000000000..c7bf113cb6c --- /dev/null +++ b/draftlogs/6304_change.md @@ -0,0 +1 @@ + - Use valType of `angle` for `rotation` in `pie` [[#6304](https://github.com/plotly/plotly.js/pull/6304)] diff --git a/src/traces/pie/attributes.js b/src/traces/pie/attributes.js index e30768e4e05..ef4f7252b7f 100644 --- a/src/traces/pie/attributes.js +++ b/src/traces/pie/attributes.js @@ -276,9 +276,7 @@ module.exports = { ].join(' ') }, rotation: { - valType: 'number', - min: -360, - max: 360, + valType: 'angle', dflt: 0, editType: 'calc', description: [ diff --git a/test/plot-schema.json b/test/plot-schema.json index 7b882a3ea25..255818a66e6 100644 --- a/test/plot-schema.json +++ b/test/plot-schema.json @@ -41129,9 +41129,7 @@ "description": "Instead of the first slice starting at 12 o'clock, rotate to some other angle.", "dflt": 0, "editType": "calc", - "max": 360, - "min": -360, - "valType": "number" + "valType": "angle" }, "scalegroup": { "description": "If there are multiple pie charts that should be sized according to their totals, link them by providing a non-empty group id here shared by every trace in the same group.",