Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get the wrong color info of sunburst area #8952

Closed
yingxu9871 opened this issue Aug 27, 2018 · 2 comments · Fixed by OpenTMI/opentmi-default-gui#32 or DeviaVir/zenbot#2011 · May be fixed by dyna-dot/iClient-JavaScript-s#1
Closed
Assignees
Labels
bug en This issue is in English

Comments

@yingxu9871
Copy link

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 [其他信息]

  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

  1. 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

@Ovilia Ovilia self-assigned this Aug 27, 2018
@Ovilia Ovilia added the bug label Aug 27, 2018
usagiring added a commit to usagiring/incubator-echarts that referenced this issue Oct 16, 2018
usagiring added a commit to usagiring/incubator-echarts that referenced this issue Oct 16, 2018
@100pah 100pah added the en This issue is in English label Oct 29, 2018
@100pah 100pah closed this as completed in 7ed2cb0 Oct 29, 2018
100pah added a commit that referenced this issue Oct 29, 2018
fix: #8952 callback function params.color incorrect
@weizhanzhan
Copy link

最后咋解决的?

@plainheart
Copy link
Member

@weizhanzhan 测试了下,我认为这个问题在当前ECharts版本中应该已经被解决了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment