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


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

Get the wrong color info of sunburst area . Could reproduce by echart demo. 

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

### Expected behaviour [期望结果]


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

1.  Copy  the following code in the echart demo: 
http://echarts.baidu.com/examples/editor.html?c=sunburst-simple to show the 
color in the tooltip.  Note copy the code in the "options" part.

    tooltip: {
            formatter: function (info) {
                let tooltipHtml=`<div style='width: 38px;
                            height: 5px;
                            border-radius: 20px;
                            background-color:${info.color};'>
                            </div>`
            return tooltipHtml;
            },
    },

2.  move the mouse to the "cousin Jenny" area, which should show the "blue" 
color bar in the tooltip, but it is not.

![image](https://user-images.githubusercontent.com/28331441/44645026-bbadf400-aa08-11e8-9110-d099a8edf24d.png)

3. copy the same code in another sunburst demo: 
http://echarts.baidu.com/examples/editor.html?c=sunburst-drink, its show the 
right color bar. 

![image](https://user-images.githubusercontent.com/28331441/44645137-219a7b80-aa09-11e8-8f26-1d8771549e62.png)


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

Reply via email to