From 2af75a8179b177daf603d8d004470249db5bce7b Mon Sep 17 00:00:00 2001 From: archmoj Date: Tue, 29 Sep 2020 13:44:42 -0400 Subject: [PATCH] revise sunburst rotation --- src/traces/sunburst/attributes.js | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/traces/sunburst/attributes.js b/src/traces/sunburst/attributes.js index ffbea5232fe..2e16764b009 100644 --- a/src/traces/sunburst/attributes.js +++ b/src/traces/sunburst/attributes.js @@ -203,7 +203,18 @@ module.exports = { 'this option won\'t have any effect and `insidetextfont` would be used.' ].join(' ') }), - rotation: pieAttrs.rotation, + rotation: { + valType: 'number', + role: 'style', + min: -180, + max: 180, + dflt: 0, + editType: 'plot', + description: [ + 'Instead of the first slice starting at 3 o\'clock,', + 'rotate to some other angle.' + ].join(' ') + }, sort: pieAttrs.sort, domain: domainAttrs({name: 'sunburst', trace: true, editType: 'calc'})