Skip to content

Commit 4e262a5

Browse files
authored
Merge pull request #6304 from plotly/pie-rotation-angle
change valType of `rotation` in pie to be `angle`
2 parents f1f331d + 67d5cc0 commit 4e262a5

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

draftlogs/6304_change.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
- Use valType of `angle` for `rotation` in `pie` [[#6304](https://github.com/plotly/plotly.js/pull/6304)]

src/traces/pie/attributes.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -276,9 +276,7 @@ module.exports = {
276276
].join(' ')
277277
},
278278
rotation: {
279-
valType: 'number',
280-
min: -360,
281-
max: 360,
279+
valType: 'angle',
282280
dflt: 0,
283281
editType: 'calc',
284282
description: [

test/plot-schema.json

+1-3
Original file line numberDiff line numberDiff line change
@@ -41143,9 +41143,7 @@
4114341143
"description": "Instead of the first slice starting at 12 o'clock, rotate to some other angle.",
4114441144
"dflt": 0,
4114541145
"editType": "calc",
41146-
"max": 360,
41147-
"min": -360,
41148-
"valType": "number"
41146+
"valType": "angle"
4114941147
},
4115041148
"scalegroup": {
4115141149
"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.",

0 commit comments

Comments
 (0)