[Bug] 当 type:' tree' 且 edgeShape: 'polyline' 时,不支持具体连接线属性的配置,但是edgeShape:'curve'却支持。
- Dominant language
- TypeScript
- Stars
- 67.3k
- Forks
- 19.8k
- Avg merge
- 15h 17m
- Merged PRs (30d)
- 5
Description
### Version
5.4.1
### Link to Minimal Reproduction
https://echarts.apache.org/examples/zh/editor.html?code=PYBwLglsB2AEC8sDeAoWsDOBTAThLGAXLANqrrpgCeIWxARGDllvQDRoVYAmA5lgGUAFgENaxAOQhgAGyoyI0LBNgcKsbiLAjiZTuugiAtnVj0cwYGHb6KAYyEQZ3ZtF3l1FQyYYBhR86wAII2nvYBLlhupLbqSLCxnt6m9AAyWCIAZrC-oWEUCkoC1DJ0Hvn2ssA4hBLM3BJqFRTU4hKaGEI8EonqAL69FIN9bAkVSMkM6VmwACL0fQC6iSPIg5Nm_k7csABCeWEO2666g-jxG2kZ2QDi9LCrZ8iwl9PZABILg8thS7ZLTXQMhEACMsDJiOUKNIMBBIDAGHheEJrP9OH8-kA&_source=echarts-doc-preview
### Steps to Reproduce
我想要实现在 edgeShape:'polyline'时,tree的lineStyle支持每一条连接线的配置。
1. edgeShape:'curve'时,是支持lineStyle的配置的,链接如下:https://echarts.apache.org/examples/zh/editor.html?code=PYBwLglsB2AEC8sDeAoWsDOBTAThLGAXLANqrrpgCeIWxARGDllvQDRoVYAmA5lgGUAFgENaxAOQBjAK44AblgmwOFWNxFgRxMpzXQRAWzqx6OYMDDs9FKUIgAbbs2g7yaigeMMAwvaewAILWHrb-zliupDZqSLAxHl4m9AAyWCIAZrA-IaEUDhDQgtQOdO55tsAOwDiEEszcEqoVFNTiEhoYQjwSCWoAvn0UQ_1s8RVISQxpmbAAIvT9ALoJo8hDU6Z-jtywAEK5oXY7LjpD6HGbqelZAOL0sGvnyLBXM1kAEotDK6HLNstmugHCIAEZYBzEcoUEDADAQSAwBh4XhCKwAzj_fpAA&_source=echarts-doc-preview
2. edgeShape:'polyline'时,不支持lineStyle的配置的,链接如下:https://echarts.apache.org/examples/zh/editor.html?code=PYBwLglsB2AEC8sDeAoWsDOBTAThLGAXLANqrrpgCeIWxARGDllvQDRoVYAmA5lgGUAFgENaxAOQhgAGyoyI0LBNgcKsbiLAjiZTuugiAtnVj0cwYGHb6KAYyEQZ3ZtF3l1FQyYYBhR86wAII2nvYBLlhupLbqSLCxnt6m9AAyWCIAZrC-oWEUCkoC1DJ0Hvn2ssA4hBLM3BJqFRTU4hKaGEI8EonqAL69FIN9bAkVSMkM6VmwACL0fQC6iSPIg5Nm_k7csABCeWEO2666g-jxG2kZ2QDi9LCrZ8iwl9PZABILg8thS7ZLTXQMhEACMsDJiOUKNIMBBIDAGHheEJrP9OH8-kA&_source=echarts-doc-preview
### Current Behavior
当前版本中,当 edgeShape:'polyline'时,data中的lineStyle不支持配置。
### Expected Behavior
当 edgeShape:'polyline'时,data中的lineStyle支持配置,可以完全控制连接线的属性(颜色,类型等)
### Environment
```markdown
- OS:
- Browser:
- Framework:
```
### Any additional comments?
_No response_
Contributor guide
Research direction
Start by reproducing the two linked ECharts examples with tree edgeShape set to curve and polyline, then trace the tree-series handling of per-node data lineStyle for each shape. The issue is done when polyline connections honor the configured line properties, including color and type, consistently with curve connections, with regression coverage for the reported reproduction.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- data-visualization
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100