Skip to content

Commit

Permalink
Merge pull request #6304 from plotly/pie-rotation-angle
Browse files Browse the repository at this point in the history
change valType of `rotation` in pie to be `angle`
  • Loading branch information
archmoj authored Sep 20, 2022
2 parents f1f331d + 67d5cc0 commit 4e262a5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
1 change: 1 addition & 0 deletions draftlogs/6304_change.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Use valType of `angle` for `rotation` in `pie` [[#6304](https://github.com/plotly/plotly.js/pull/6304)]
4 changes: 1 addition & 3 deletions src/traces/pie/attributes.js
Original file line number Diff line number Diff line change
Expand Up @@ -276,9 +276,7 @@ module.exports = {
].join(' ')
},
rotation: {
valType: 'number',
min: -360,
max: 360,
valType: 'angle',
dflt: 0,
editType: 'calc',
description: [
Expand Down
4 changes: 1 addition & 3 deletions test/plot-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -41143,9 +41143,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.",
Expand Down

0 comments on commit 4e262a5

Please sign in to comment.