Skip to content

Commit 0e0049d

Browse files
committed
use axType to consider axis types defined in template
1 parent 96e3590 commit 0e0049d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/plots/cartesian/axis_defaults.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -105,10 +105,10 @@ module.exports = function handleAxisDefaults(containerIn, containerOut, coerce,
105105

106106
if(options.automargin) coerce('automargin');
107107

108-
var isMultiCategory = containerOut.type === 'multicategory';
108+
var isMultiCategory = axType === 'multicategory';
109109

110110
if(!options.noTickson &&
111-
(containerOut.type === 'category' || isMultiCategory) &&
111+
(axType === 'category' || isMultiCategory) &&
112112
(containerOut.ticks || containerOut.showgrid)
113113
) {
114114
var ticksonDflt;
@@ -124,7 +124,7 @@ module.exports = function handleAxisDefaults(containerIn, containerOut, coerce,
124124
}
125125
}
126126

127-
if(containerOut.type === 'date') {
127+
if(axType === 'date') {
128128
var fromTemplate = (options.axTemplate || {}).rangebreaks;
129129
var rangebreaks = containerIn.rangebreaks || fromTemplate;
130130

0 commit comments

Comments
 (0)