Closed seeddyan closed 3 years ago
@seeddyan you can set xAxis.scale
to true
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been automatically closed because it did not have recent activity. If this remains to be a problem with the latest version of Apache ECharts, please open a new issue and link this to it. Thanks!
General Questions
PLEASE MAKE SURE OF ALL THE FOLLOWING OPTIONS IN REQUIRED FIELDS ARE TICKED (with x)! Otherwise, the issue will not be answered. And think before you tick. :) 请确保以下每项都打上勾了!并且确保都做了这些事哦~ 这将大量简化我们的工作流程,使你的问题更快速得到解答。
In this issue, I have provided information with: 在这个 issue 中我提供了以下信息:
Issue Type
Issue Details
xAxis.min = 'dataMin' doesn't work when there exists dataZoom property, even if it's empty. 当dataZoom存在时,xAxis的min属性设置为'dataMin'不生效,即使dataZoom啥都没有,是个空对象。
Expected Behavior
xAxis.min = 'dataMin' work at anytime. xAxis.min = 'dataMin'在存在dataZoom属性时,仍然生效。
Current Behavior
当dataZoom存在时,xAxis的min属性设置为'dataMin'不生效,即使dataZoom啥都没有,是个空对象。相同前提下,设置max为'dataMax'是没问题的。xAxis类型为'time'时也是ok的,类型为'value'时有问题。
Online Example
THIS IS REQUIRED FOR ALL BUG REPORTS AND QUESTIONS!!! 如果是提问或报 bug 一定要提供这一项!
option = { dataZoom: {}, xAxis: { min: 'dataMin', max: 'dataMax' }, yAxis: {}, series: [{ symbolSize: 20, data: [ [10.0, 8.04], [8.0, 6.95], [13.0, 7.58], [9.0, 8.81], [11.0, 8.33], [14.0, 9.96], [6.0, 7.24], [4.0, 4.26], [12.0, 10.84], [7.0, 4.82], [5.0, 5.68] ], type: 'scatter' }] };
{PASTE_RELATED_CODE_HERE}
Topics
Anything Else We Need to Know
{DESCRIBE_HERE}
Environment
ECharts version;ECharts 版本: "4.2.0"
[ ] It happens only on certain browsers or operating systems. 对于特定浏览器或操作系统才会出现的问题,请提供相应环境信息:{BROWSER_VERSION_OR_OS_INFORMATION_HERE}