apache / echarts

Apache ECharts is a powerful, interactive charting and data visualization library for browser
https://echarts.apache.org
Apache License 2.0
60.59k stars 19.62k forks source link

setting toolbox.feature.dataZoom.yAxisIndex = false, #14171

Closed chen9091 closed 3 years ago

chen9091 commented 3 years ago

Version

5.0.1

Steps to reproduce

var option = {
                title: {
                    text: 'ECharts 入门示例'
                },
                trigger: 'axis',
                axisPointer: {
                    type: 'cross'
                },
                legend: {
                    data:['销量']
                },
                grid: {
                    left: '5%',
                    top: 120,
                    right: '5%',
                    bottom: 60
                },
                xAxis: {
                    data: ["衬衫","羊毛衫","雪纺衫","裤子","高跟鞋","袜子"]
                },
                toolbox: {
                    show: true,
                    feature: {
                        dataZoom: {
                            show:false,
                            yAxisIndex: false
                        },
                    }
                },
                yAxis: {},
                series: [{
                    name: '销量',
                    type: 'bar',
                    data: [5, 20, 36, 10, 10, 20]
                }]
            };

TypeError: Cannot read property 'unmount' of undefined

What is expected?

不报错,正常使用,

What is actually happening?

报错,echats图表不能正常使用


echarts4.9升到5.0.1,toolbox.feature.dataZoom.yAxisIndex = false ;报错

echarts-bot[bot] commented 3 years ago

Hi! We've received your issue and please be patient to get responded. 🎉 The average response time is expected to be within one day for weekdays.

In the meanwhile, please make sure that you have posted enough image to demo your request. You may also check out the API and chart option to get the answer.

If you don't get helped for a long time (over a week) or have an urgent question to ask, you may also send an email to dev@echarts.apache.org. Please attach the issue link if it's a technical question.

If you are interested in the project, you may also subscribe our mailing list.

Have a nice day! 🍵