Skip to content

Commit 460e53a

Browse files
committed
use specs in fullLayout to compute the ordered categories,
- part one in fixing the category relayout bug - by using the fullLayout (i.e. containerOur) specs, we ensure that ordered categories algo uses smartly-defaulted attributes.
1 parent 05715bd commit 460e53a

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/plots/cartesian/axis_defaults.js

+5-4
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,6 @@ module.exports = function handleAxisDefaults(containerIn, containerOut, coerce,
7474
}
7575
}
7676

77-
containerOut._initialCategories = axType === 'category' ?
78-
orderedCategories(letter, containerIn.categoryorder, containerIn.categoryarray, options.data) :
79-
[];
80-
8177
setConvert(containerOut);
8278

8379
var dfltColor = coerce('color');
@@ -142,6 +138,11 @@ module.exports = function handleAxisDefaults(containerIn, containerOut, coerce,
142138
delete containerOut.zerolinewidth;
143139
}
144140

141+
// fill in categories
142+
containerOut._initialCategories = axType === 'category' ?
143+
orderedCategories(letter, containerOut.categoryorder, containerOut.categoryarray, options.data) :
144+
[];
145+
145146
return containerOut;
146147
};
147148

0 commit comments

Comments
 (0)