Skip to content

Commit 0b85af2

Browse files
committed
init categories stashes for polar axes
1 parent 9770f2c commit 0b85af2

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/plots/plots.js

+10
Original file line numberDiff line numberDiff line change
@@ -2226,6 +2226,16 @@ plots.doCalcdata = function(gd, traces) {
22262226
trace._arrayAttrs = PlotSchema.findArrayAttributes(trace);
22272227
}
22282228

2229+
// TODO maybe move this to Axes.list ??
2230+
// or better yet, make a more general Axes.list
2231+
var polarIds = plots.getSubplotIds(fullLayout, 'polar');
2232+
for(i = 0; i < polarIds.length; i++) {
2233+
axList.push(
2234+
fullLayout[polarIds[i]].radialaxis,
2235+
fullLayout[polarIds[i]].angularaxis
2236+
);
2237+
}
2238+
22292239
initCategories(axList);
22302240

22312241
var hasCalcTransform = false;

0 commit comments

Comments
 (0)