Skip to content

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

@wendyLiGitHub

Description

@wendyLiGitHub

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions