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


### One-line summary [问题简述]
现有设置两个以上tooltip的需求,于是我尝试把option中的tooltip的值改成数组,结果如果数组里只放1项,也就是1个tooltip,是正常的,但放两个或以上就会导致浏览器卡死,关都关不了只能结束进程。




### Version & Environment [版本及环境]
+ ECharts version [ECharts 版本]: 4.2.0
+ Browser version [浏览器类型和版本]: 谷歌最新,火狐最新
+ OS Version [操作系统类型和版本]: win10





### Expected behaviour [期望结果]
能同时设置多个tooltip,分别在不同的position显示不同的维度的数据




### ECharts option [ECharts配置项]
<!-- Copy and paste your 'echarts option' here. -->
<!-- [下方贴你的option,注意不要删掉下方 ```javascript 和 尾部的 ``` 字样。最好是我们能够直接运行的 
option。如何得到能运行的 option 参见上方的 guidelines for contributing] -->
```javascript
option = {
    legend: {},
    dataset: {
        dimensions: ['product', '2015', '2016', '2017'],
        source: [
            {product: 'Matcha Latte', '2015': 43.3, '2016': 85.8, '2017': 93.7},
            {product: 'Milk Tea', '2015': 83.1, '2016': 73.4, '2017': 55.1},
            {product: 'Cheese Cocoa', '2015': 86.4, '2016': 65.2, '2017': 82.5},
            {product: 'Walnut Brownie', '2015': 72.4, '2016': 53.9, '2017': 
39.1}
        ]
    },
    xAxis: {type: 'category'},
    yAxis: {},
    series: [
        {
                        type: 'bar',
                        encode: {
                                x: 'product',
                                y: '2015'
                        }
                },
        {
                        type: 'bar',
                        encode: {
                                x: 'product',
                                y: '2016'
                        }
                },
        {
                        type: 'bar',
                        encode: {
                                x: 'product',
                                y: '2017'
                        }
                }
    ],
        tooltip: [
                {
                        show: true,
                        position: {
                                left: 0,
                                top: 0
                        },
                },
                {
                        show: true,
                        position: {
                                right: 0,
                                top: 0
                        },
                }
        ],
};

```




### Other comments [其他信息]
<!-- For example: Screenshot or Online demo -->
<!-- [例如,截图或线上实例 (JSFiddle/JSBin/Codepen)] -->
浏览器直接卡死,谁运行这个option谁浏览器卡死~~~


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

Reply via email to