Skip to content
Merged
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/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 @@ -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.",
Expand Down