<!--
为了方便我们能够复现和修复 bug,请遵从下面的规范描述您的问题。
-->


### One-line summary [问题简述]

双Y坐标轴,设置min、max后,图例切换,坐标轴不正确显示和隐藏,而把min、max去掉后是正常的



### Version & Environment [版本及环境]
+ ECharts version [ECharts 版本]: 4.1.0
+ Browser version [浏览器类型和版本]: chrome
+ OS Version [操作系统类型和版本]: mac





### Expected behaviour [期望结果]





### ECharts option [ECharts配置项]
<!-- Copy and paste your 'echarts option' here. -->
<!-- [下方贴你的option,注意不要删掉下方 ```javascript 和 尾部的 ``` 字样。最好是我们能够直接运行的 
option。如何得到能运行的 option 参见上方的 guidelines for contributing] -->
```javascript
option = {
    legend: {
      top: 'auto',
      data: ['温度(℃)', '湿度(%)']
    },
    xAxis: {
        type: 'category',
        data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
    },
    yAxis: [{
        type: 'value',
        name: '温度(℃)',
        min: function (value) {
            return 100;
        },
        max: function () {
            return 2000;
        }
    },{
        type: 'value',
        name: '湿度(%)',
        min: function () {
            return 10;
        },
        max: function () {
            return 100;
        }
    }],
    series: [{
         name: '温度(℃)',
        data: [820, 932, 901, 934, 1290, 1330, 1320],
        type: 'line'
    },{
         name: '湿度(%)',
         yAxisIndex: 1,
        data: [20, 30, 40, 50, 60, 70, 100],
        type: 'line'
    }]
};

```




### Other comments [其他信息]
<!-- For example: Screenshot or Online demo -->
<!-- [例如,截图或线上实例 (JSFiddle/JSBin/Codepen)] -->



[ Full content available at: 
https://github.com/apache/incubator-echarts/issues/9051 ]
This message was relayed via gitbox.apache.org for [email protected]

Reply via email to