提交 2e68bc88 编写于 作者: S sushuang
...@@ -19,11 +19,12 @@ To check the option, add x in [ ], e.g.: [x] I am ... ...@@ -19,11 +19,12 @@ To check the option, add x in [ ], e.g.: [x] I am ...
<!-- BEGINNING OF REQUIRED FIELDS 必填项开始 --> <!-- BEGINNING OF REQUIRED FIELDS 必填项开始 -->
<!--
PLEASE MAKE SURE OF ALL THE FOLLOWING OPTIONS IN REQUIRED FIELDS ARE TICKED (with x)! PLEASE MAKE SURE OF ALL THE FOLLOWING OPTIONS IN REQUIRED FIELDS ARE TICKED (with x)!
Otherwise, the issue will not be answered. Otherwise, the issue will not be answered.
And think before you tick. :) And think before you tick. :)
请确保以下每项都打上勾了!并且确保都做了这些事哦~ 这将大量简化我们的工作流程,使你的问题更快速得到解答。 请确保以下每项都打上勾了!并且确保都做了这些事哦~ 这将大量简化我们的工作流程,使你的问题更快速得到解答。
-->
- [ ] Required: I have read the document and examples and tried to solve it by myself. (必填)我读过了文档和教程,并且曾试图自己解决问题。 - [ ] Required: I have read the document and examples and tried to solve it by myself. (必填)我读过了文档和教程,并且曾试图自己解决问题。
- [ ] Required: I have searched for similar issues and that didn't help. (必填)我搜索过 issue 但是没有帮助。 - [ ] Required: I have searched for similar issues and that didn't help. (必填)我搜索过 issue 但是没有帮助。
...@@ -57,33 +58,35 @@ In this issue, I have provided information with: 在这个 issue 中我提供了 ...@@ -57,33 +58,35 @@ In this issue, I have provided information with: 在这个 issue 中我提供了
<!-- Use one sentence to describe what you want and what's wrong. 一句话描述问题。 --> <!-- Use one sentence to describe what you want and what's wrong. 一句话描述问题。 -->
{DESCRIBE_HERE} <!-- DESCRIBE_HERE} -->
### Expected Behavior ### Expected Behavior
<!-- Add screenshots to demo if necessary. 期望的效果。 --> <!-- Add screenshots to demo if necessary. 期望的效果。 -->
{DESCRIBE_HERE} <!-- {DESCRIBE_HERE} -->
### Current Behavior ### Current Behavior
<!-- Add screenshots to demo if necessary. Otherwise, replace the following line with N/A. 现在的效果。 --> <!-- Add screenshots to demo if necessary. Otherwise, replace the following line with N/A. 现在的效果。 -->
{DESCRIBE_HERE} <!-- {DESCRIBE_HERE} -->
### Online Example ### Online Example
<!-- Please use jsfiddle.net or gallery.echartsjs.com to provide a simplest demo to show the problem. And do not upload zip demos. 请使用 gallery.echartsjs.com 提供最简单可运行的代码,请不要上传 zip 文件。 --> <!-- Please use jsfiddle.net or gallery.echartsjs.com to provide a simplest demo to show the problem. And do not upload zip demos. 请使用 gallery.echartsjs.com 提供最简单可运行的代码,请不要上传 zip 文件。 -->
<!--
THIS IS REQUIRED FOR ALL BUG REPORTS AND QUESTIONS!!! 如果是提问或报 bug 一定要提供这一项! THIS IS REQUIRED FOR ALL BUG REPORTS AND QUESTIONS!!! 如果是提问或报 bug 一定要提供这一项!
-->
{ADD_LINK_OF_DEMO_HERE} <!-- {ADD_LINK_OF_DEMO_HERE} -->
<!-- Please make your demo as simple as possible to help locate the problem. And paste only necessary part of code here. 提供必要的代码,不要全部粘贴。 --> <!-- Please make your demo as simple as possible to help locate the problem. And paste only necessary part of code here. 提供必要的代码,不要全部粘贴。 -->
{PASTE_RELATED_CODE_HERE} <!-- {PASTE_RELATED_CODE_HERE} -->
## Topics ## Topics
...@@ -103,7 +106,7 @@ THIS IS REQUIRED FOR ALL BUG REPORTS AND QUESTIONS!!! 如果是提问或报 bug ...@@ -103,7 +106,7 @@ THIS IS REQUIRED FOR ALL BUG REPORTS AND QUESTIONS!!! 如果是提问或报 bug
<!-- You may reference other issues here. Otherwise, replace the following line with N/A. 其他我们需要知道的东西,比如引用其他 issue。 --> <!-- You may reference other issues here. Otherwise, replace the following line with N/A. 其他我们需要知道的东西,比如引用其他 issue。 -->
{DESCRIBE_HERE} <!-- {DESCRIBE_HERE} -->
## Environment ## Environment
......
...@@ -62,7 +62,7 @@ function Grid(gridModel, ecModel, api) { ...@@ -62,7 +62,7 @@ function Grid(gridModel, ecModel, api) {
this._coordsList = []; this._coordsList = [];
/** /**
* @type {Object.<string, module:echarts/coord/cartesian/Axis2D>} * @type {Object.<string, Array.<module:echarts/coord/cartesian/Axis2D>>}
* @private * @private
*/ */
this._axesMap = {}; this._axesMap = {};
...@@ -423,9 +423,7 @@ gridProto._initCartesian = function (gridModel, ecModel, api) { ...@@ -423,9 +423,7 @@ gridProto._initCartesian = function (gridModel, ecModel, api) {
if (axisPosition !== 'top' && axisPosition !== 'bottom') { if (axisPosition !== 'top' && axisPosition !== 'bottom') {
// Default bottom of X // Default bottom of X
axisPosition = 'bottom'; axisPosition = 'bottom';
if (axisPositionUsed[axisPosition]) { axisPosition = axisPositionUsed[axisPosition] ? 'top' : 'bottom';
axisPosition = axisPosition === 'top' ? 'bottom' : 'top';
}
} }
} }
else { else {
...@@ -433,9 +431,7 @@ gridProto._initCartesian = function (gridModel, ecModel, api) { ...@@ -433,9 +431,7 @@ gridProto._initCartesian = function (gridModel, ecModel, api) {
if (axisPosition !== 'left' && axisPosition !== 'right') { if (axisPosition !== 'left' && axisPosition !== 'right') {
// Default left of Y // Default left of Y
axisPosition = 'left'; axisPosition = 'left';
if (axisPositionUsed[axisPosition]) { axisPosition = axisPositionUsed[axisPosition] ? 'right' : 'left';
axisPosition = axisPosition === 'left' ? 'right' : 'left';
}
} }
} }
axisPositionUsed[axisPosition] = true; axisPositionUsed[axisPosition] = true;
......
...@@ -1936,7 +1936,7 @@ function enableConnect(chart) { ...@@ -1936,7 +1936,7 @@ function enableConnect(chart) {
* @param {Object} [theme] * @param {Object} [theme]
* @param {Object} opts * @param {Object} opts
* @param {number} [opts.devicePixelRatio] Use window.devicePixelRatio by default * @param {number} [opts.devicePixelRatio] Use window.devicePixelRatio by default
* @param {string} [opts.renderer] Currently only 'canvas' is supported. * @param {string} [opts.renderer] Can choose 'canvas' or 'svg' to render the chart.
* @param {number} [opts.width] Use clientWidth of the input `dom` by default. * @param {number} [opts.width] Use clientWidth of the input `dom` by default.
* Can be 'auto' (the same as null/undefined) * Can be 'auto' (the same as null/undefined)
* @param {number} [opts.height] Use clientHeight of the input `dom` by default. * @param {number} [opts.height] Use clientHeight of the input `dom` by default.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册