提交 475a4c24 编写于 作者: P pah100

default category axis

上级 dcf0ea41
......@@ -25,8 +25,8 @@ define(function(require) {
});
function getAxisType(axisDim, option) {
// Default xAxis and axis with data is category axis
return option.type || ((axisDim === 'x' || option.data) ? 'category' : 'value');
// Default axis with data is category axis
return option.type || (option.data ? 'category' : 'value');
}
zrUtil.merge(AxisModel.prototype, require('../axisModelCommonMixin'));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册