apache / apache/echarts

[Bug] Changing selected node's linestyle doesn't work

Open
#18,214 5 comments 0 reactions 0 assignees View on GitHub
bug difficulty: easy en topic: tree
Dominant language
TypeScript
Stars
67.3k
Forks
19.8k
Avg merge
11d 14h
Merged PRs (30d)
8

Description

### Version

5.0.1

### Link to Minimal Reproduction

https://jsfiddle.net/ck35xrL8/

### Steps to Reproduce

1. Added the selectedMode to single, and added the select lineStyle.
```
selectedMode: "single",
select: {
itemStyle: {
color: "rgba(236, 114, 17, 1)"
// backgroundColor: "rgba(236, 114, 17, 1)";
},
lineStyle:
{
color: "rgba(236, 114, 17, 1)"
}

},
```

### Current Behavior

The lineStyle i.e the color of the branch doesn't change on click of the node.

### Expected Behavior

The color should change to the provided color

### Environment

```markdown
- OS:
- Browser:
- Framework:
```

### Any additional comments?

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.