1.背景
收入波动分析,使用脑图(树形图)展示不同维度的权重,权重大的对应的树枝更粗些
2.echarts测试
# 代码
option = {
series: [{
type: "tree",
data: [{
name: "root",
children: [{
name: "Child A",
lineStyle: {
width: 5
},
children: [{
name: "Leaf C"
}, {
name: "Leaf D"
}, {
name: "Leaf E",
lineStyle: {
width: 10
},
}, {
name: "Leaf F"
}]
}, {
name: "Child B",
children: [{
name: "Leaf G"
}, {
name: "Leaf H"
}]
}, {
name: "Child D",
lineStyle: {
width: 8
},
}, {
name: "Child F",
children: [{
name: "Leaf J"
}, {
name: "Leaf K"
}]
}]
}],
label: {
position: "right"
}
}]
}
标签:粗细,Leaf,name,树枝,树形图,width,Child,children
From: https://www.cnblogs.com/route/p/17061007.html