[Feature] 折线树状图怎么调整每个级别之间的线条长度呢?
- Dominant language
- TypeScript
- Stars
- 67.3k
- Forks
- 19.8k
- Avg merge
- 11d 14h
- Merged PRs (30d)
- 8
Description
### What problem does this feature solve?
const requestData = () => {
let option = {
tooltip: {
trigger: 'item',
triggerOn: 'mousemove'
},
series: [
{
type: 'tree',
id: 0,
name: 'tree1',
data: date.value,
top: '2%',
left: '7%',
bottom: '2%',
right: '22%',
symbolSize: 7,
edgeShape: 'polyline',
edgeForkPosition: '63%',
initialTreeDepth: 3,
lineStyle: {
width: 2
},
label: {
formatter: function (params) {
// console.log('params--value', params.data);
if (params.data.value !== undefined && params.data.value !== null) {
return `${params.data.name}: ${params.data.value}`;
} else {
return params.data.name;
}
},
position: 'top',
verticalAlign: 'middle',
align: 'right',
color: '#fff',
fontSize: 16,
},
leaves: {
label: {
position: 'right',
verticalAlign: 'middle',
align: 'left'
}
},
itemStyle: {
color: '#3399ff' // 收起节点的颜色
},
emphasis: {
focus: 'descendant'
},
expandAndCollapse: true,
animationDuration: 550,
animationDurationUpdate: 750,
linkDistance:30,
}
]
};
// 设置图表
mycharts.setOption(option);
}这是我的折现tree图代码,我使用linkDistance去改变节点间的线条长度,但是无效
### What does the proposed API look like?
我希望能增加调整线条长度的配置项
Contributor guide
Assessment
This issue has not been assessed yet.