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

[旭日图] 下钻后更新数据,返回上一层的圈不会被重置 #8132

Closed
stdrickforce opened this Issue Apr 11, 2018 · 0 comments

Comments

Projects
None yet
2 participants
@stdrickforce

stdrickforce commented Apr 11, 2018

One-line summary [问题简述]

为简化问题描述,我们假设下钻后返回上一层的圈为X

问题有两个,都在同一个 demo 里面可以复现

  1. 下钻到比较低的层级时(显示X后),更新数据,X不会被重置(效果见下图)。
  2. 设置了 tooltip 后,鼠标移到X上面时,控制台会疯狂报错。

image

Version & Environment [版本及环境]

  • ECharts version [ECharts 版本]: 4.0.4
  • Browser version [浏览器类型和版本]: Chrome Version 62.0.3202.89 (Official Build) (64-bit)
  • OS Version [操作系统类型和版本]: macOS High Sierra Version 10.13.3

Expected behaviour [期望结果]

  1. 下钻后更新数据,X会被正常的移除。
  2. 下钻后鼠标移到X上面时,控制台不再报错。

ECharts option [ECharts配置项]

option = {
    series: {
        highlightPolicy: 'ancestor',
        type: 'sunburst',
        radius: [0, '90%'],
        label: {
            rotate: 'radial'
        },
        levels: [
            {},
            {
                downplay: {
                    itemStyle: {
                        opacity: 0.6,
                    }
                }
            },
            {
                downplay: {
                    itemStyle: {
                        opacity: 0.6,
                    }
                }
            },
            {
                downplay: {
                    itemStyle: {
                        opacity: 0.6,
                    }
                }
            },
        ]
    },
    tooltip: {
        trigger: 'item',
        formatter: function() {
            return "tooltip";
        }
    }
};

Other comments [其他信息]

在线demo
(需要启用 unsafe script 才能正常使用,原因是 echarts 官方的 cdn 并不是 https 的)

@Ovilia Ovilia self-assigned this Apr 11, 2018

Ovilia added a commit that referenced this issue Apr 13, 2018

@Ovilia Ovilia closed this Apr 13, 2018

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