Skip to content

Commit edecef1

Browse files
committed
use valType of angle for pie rotation
1 parent 8206eb5 commit edecef1

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

src/traces/pie/attributes.js

Lines changed: 1 addition & 3 deletions
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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41129,9 +41129,7 @@
4112941129
"description": "Instead of the first slice starting at 12 o'clock, rotate to some other angle.",
4113041130
"dflt": 0,
4113141131
"editType": "calc",
41132-
"max": 360,
41133-
"min": -360,
41134-
"valType": "number"
41132+
"valType": "angle"
4113541133
},
4113641134
"scalegroup": {
4113741135
"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)