提交 a7f5d3c1 编写于 作者: S sushuang

Tweak.

上级 2e68bc88
......@@ -422,16 +422,14 @@ gridProto._initCartesian = function (gridModel, ecModel, api) {
// Fix position
if (axisPosition !== 'top' && axisPosition !== 'bottom') {
// Default bottom of X
axisPosition = 'bottom';
axisPosition = axisPositionUsed[axisPosition] ? 'top' : 'bottom';
axisPosition = axisPositionUsed.bottom ? 'top' : 'bottom';
}
}
else {
// Fix position
if (axisPosition !== 'left' && axisPosition !== 'right') {
// Default left of Y
axisPosition = 'left';
axisPosition = axisPositionUsed[axisPosition] ? 'right' : 'left';
axisPosition = axisPositionUsed.left ? 'right' : 'left';
}
}
axisPositionUsed[axisPosition] = true;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册