Skip to content

Commit cc055fa

Browse files
sunburst rotation - add check on auto
again
1 parent 18d77db commit cc055fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/traces/sunburst/plot.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ function plotOne(gd, cd, element, transitionOpts) {
150150
// filter out slices that won't show up on graph
151151
sliceData = sliceData.filter(function(pt) { return pt.y1 <= cutoff; });
152152

153-
if(trace.rotation) {
153+
if(trace.rotation && trace.rotation !== 'auto') {
154154
var extraAngle = trace.rotation * Math.PI / 180;
155155
sliceData.forEach(function(pt) {
156156
pt.x0 += extraAngle;

0 commit comments

Comments
 (0)