You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@echarts.apache.org by GitBox <gi...@apache.org> on 2018/08/27 06:55:56 UTC

[GitHub] yingxu9871 opened a new issue #8952: Get the wrong color info of sunburst area

yingxu9871 opened a new issue #8952: Get the wrong color info of sunburst area 
URL: https://github.com/apache/incubator-echarts/issues/8952
 
 
   <!--
   为了方便我们能够复现和修复 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)
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@echarts.apache.org
For additional commands, e-mail: dev-help@echarts.apache.org