echarts icon indicating copy to clipboard operation
echarts copied to clipboard

Tree tooltip 存在的问题。

Open simonguo opened this issue 8 years ago • 3 comments

image

Tree 节点 hover 时候默认显示 整个 path 路径, 但是, tooltip 定制 formatter 的回调函数中没有对应的 path , 只有当前节点信息。

simonguo avatar Aug 02 '18 05:08 simonguo

代码链接?http://gallery.echartsjs.com/editor.html

Ovilia avatar Aug 03 '18 06:08 Ovilia

不知道这做的什么东西,登录不上。

image

以下示例代码,我想自定义 formatter, 格式为: "xxx - > vvv -> ccc"

myChart.showLoading();
$.get('data/asset/data/flare.json', function (data) {
    myChart.hideLoading();

    myChart.setOption(option = {
        tooltip: {
            trigger: 'item',
            triggerOn: 'mousemove',
            formatter:'{b0}'
        },
        series: [
            {
                type: 'tree',
                data: [data],
                top: '18%',
                bottom: '14%',
                layout: 'radial',
                symbol: 'emptyCircle',
                symbolSize: 7,
                initialTreeDepth: 3,
                animationDurationUpdate: 750
            }
        ]
    });
});

simonguo avatar Aug 03 '18 07:08 simonguo

同样的问题,解决了吗

wuyuw avatar Jan 19 '21 10:01 wuyuw