echarts icon indicating copy to clipboard operation
echarts copied to clipboard

桑基图支持在节点间的线条上显示数字么

Open wendyLiGitHub opened this issue 8 years ago • 5 comments

One-line summary [问题简述]

目前版本的桑基图支持在节点间的线条上显示数字么?

Version & Environment [版本及环境]

  • ECharts version [ECharts 版本]:3.6.2
  • Browser version [浏览器类型和版本]:Chrome
  • OS Version [操作系统类型和版本]:Windows10

Expected behaviour [期望结果]

希望桑基图支持在节点间的线条上显示数字

ECharts option [ECharts配置项]

option = {
"tooltip":{},
    "toolbox":{
        "show":true,
        "itemSize":25,
        "right":12,
        "feature":{"saveAsImage":{"show":true}}},
        "series":[
            {
                "type":"sankey",
                "layout":"none",
                "data":[
                    {"name":"2016三年级A等级"},
                    {"name":"2017四年级A等级"},
                    {"name":"2017四年级B等级"},
                    {"name":"2017四年级C等级"},
                    {"name":"2016三年级B等级"},
                    {"name":"2016三年级C等级"},
                    {"name":"2016四年级A等级"},
                    {"name":"2017五年级A等级"},
                    {"name":"2017五年级B等级"},
                    {"name":"2017五年级C等级"},
                    {"name":"2016四年级B等级"},
                    {"name":"2016四年级C等级"},
                    {"name":"2016五年级A等级"},
                    {"name":"2017六年级A等级"},
                    {"name":"2017六年级B等级"},
                    {"name":"2017六年级C等级"},
                    {"name":"2016五年级B等级"},
                    {"name":"2016五年级C等级"}],
                "links":[
                    {"source":"2016三年级A等级","target":"2017四年级A等级","value":200},
                    {"source":"2016三年级A等级","target":"2017四年级B等级","value":150},
                    {"source":"2016三年级A等级","target":"2017四年级C等级","value":10},
                    {"source":"2016三年级B等级","target":"2017四年级A等级","value":100},
                    {"source":"2016三年级B等级","target":"2017四年级B等级","value":150},
                    {"source":"2016三年级B等级","target":"2017四年级C等级","value":30},
                    {"source":"2016三年级C等级","target":"2017四年级A等级","value":10},
                    {"source":"2016三年级C等级","target":"2017四年级B等级","value":50},
                    {"source":"2016三年级C等级","target":"2017四年级C等级","value":150},
                    {"source":"2016四年级A等级","target":"2017五年级A等级","value":200},
                    {"source":"2016四年级A等级","target":"2017五年级B等级","value":150},
                    {"source":"2016四年级A等级","target":"2017五年级C等级","value":10},
                    {"source":"2016四年级B等级","target":"2017五年级A等级","value":100},
                    {"source":"2016四年级B等级","target":"2017五年级B等级","value":150},
                    {"source":"2016四年级B等级","target":"2017五年级C等级","value":30},
                    {"source":"2016四年级C等级","target":"2017五年级A等级","value":10},
                    {"source":"2016四年级C等级","target":"2017五年级B等级","value":50},
                    {"source":"2016四年级C等级","target":"2017五年级C等级","value":150},
                    {"source":"2016五年级A等级","target":"2017六年级A等级","value":200},
                    {"source":"2016五年级A等级","target":"2017六年级B等级","value":150},
                    {"source":"2016五年级A等级","target":"2017六年级C等级","value":10},
                    {"source":"2016五年级B等级","target":"2017六年级A等级","value":100},
                    {"source":"2016五年级B等级","target":"2017六年级B等级","value":150},
                    {"source":"2016五年级B等级","target":"2017六年级C等级","value":30},
                    {"source":"2016五年级C等级","target":"2017六年级A等级","value":10},
                    {"source":"2016五年级C等级","target":"2017六年级B等级","value":50},
                    {"source":"2016五年级C等级","target":"2017六年级C等级","value":150}
                ],
                "itemStyle":{
                    "normal":{"borderWidth":1,"borderColor":"#aaa"}
                },
                "lineStyle":{
                    "normal":{"color":"source","curveness":0.5}
                }
            }],
            "title":{"show":true,"text":""},
            "textStyle":{"fontSize":12}
}

Other comments [其他信息]

wendyLiGitHub avatar Dec 11 '17 04:12 wendyLiGitHub

遇到同样的问题, 分析微信转发关系,想从父节点显示被转发的总次数,但是节点处只给了 ‘-’,总数太多又不能数 希望支持

dog952777 avatar Jan 03 '18 03:01 dog952777

同遇到,UP,UP!

jhr621 avatar Jan 31 '18 14:01 jhr621

@wufeng123456 @jhr621 节点上显示数字这个我会尽快加上。@wendyLiGitHub 请问您是想在节点加数字还是想在边上加数字,目前例子中边的 tooltip 是有数字的,您的诉求是边的 label 上一直显示数字是么。

deqingli avatar Oct 23 '18 03:10 deqingli

这个issue解决了么?

snowyang2021 avatar Feb 18 '22 09:02 snowyang2021

同问

yanluya avatar Mar 27 '22 03:03 yanluya