Appearance
Sankey 组件
静态数据
js
[
{
source: "a",
target: "a1",
value: 3,
},
{
source: "e",
target: "b",
value: 3,
},
{
source: "a",
target: "b1",
value: 3,
},
{
source: "b1",
target: "a1",
value: 1,
},
{
source: "b1",
target: "c",
value: 2,
},
{
source: "b",
target: "c",
value: 1,
},
{
source: "e",
target: "d",
value: 1,
},
];
[
{
source: "a",
target: "a1",
value: 3,
},
{
source: "e",
target: "b",
value: 3,
},
{
source: "a",
target: "b1",
value: 3,
},
{
source: "b1",
target: "a1",
value: 1,
},
{
source: "b1",
target: "c",
value: 2,
},
{
source: "b",
target: "c",
value: 1,
},
{
source: "e",
target: "d",
value: 1,
},
];
属性
参数 | 说明 | 类型 |
---|---|---|
source | 边的源节点名称 | string |
target | 边的目标节点名称 | string |
value | 边的数值,决定边的宽度 | number |