Javascript echarts.js悬停时饼图工具提示不起作用

Javascript echarts.js悬停时饼图工具提示不起作用,javascript,pie-chart,echarts,Javascript,Pie Chart,Echarts,我有一个使用echart.min.js的饼图。悬停时出现问题,工具提示未显示。 我的代码是 var echartPie = echarts.init(document.getElementById('mediaUserChart')); echartPie.setOption({ tooltip: { trigger: 'item', formatter: "{a} - {b} : {c} ({d}%)"

我有一个使用echart.min.js的饼图。悬停时出现问题,工具提示未显示。 我的代码是

var echartPie = echarts.init(document.getElementById('mediaUserChart'));

    echartPie.setOption({

        tooltip: {
            trigger: 'item',
            formatter: "{a} - {b} : {c} ({d}%)"


        },
        hover:true,
        legend: {

            x: 'center',
            y: 'bottom',
            data:

            ['others', 'just dial', 'trade india', 'india mart']
        },
        toolbox: {
            show: true,
            feature: {
                magicType: {
                    show: true,
                    type: ['pie', 'funnel'],
                    option: {
                        funnel: {
                            x: '25%',
                            width: '50%',
                            funnelAlign: 'left',
                            max: 1548
                        }
                    }
                },
                restore: {
                    show: false,
                    title: "Restore"
                },
                saveAsImage: {
                    show: false,
                    title: "Save Image"
                }
            }
        },
        calculable: true,
        series: [{
            name: 'Media Users',
            type: 'pie',
            radius: '55%',
            center: ['50%', '48%'],
            data:

                [{
            value: 335,
            name: 'others'
        }, {
            value: 234,
            name: 'just dial'
        }, {
            value: 135,
            name: 'trade india'
        }, {
            value: 1548,
            name: 'india mart'
        }]

        }]
    });
我在这里使用了工具提示选项。仍然没有显示工具提示。有人知道这个问题的解决办法吗

我将
更改为
它对我有用