apache / apache/echarts

[Bug] legend 设置 symbolRotate 为 inherit 不生效

Open
#20,559 1 comment 0 reactions 0 assignees View on GitHub
bug en pending
Dominant language
TypeScript
Stars
67.3k
Forks
19.8k
Avg merge
11d 14h
Merged PRs (30d)
8

Description

### Version

5.5.1

### Link to Minimal Reproduction

https://echarts.apache.org/examples/zh/editor.html?c=scatter-simple

### Steps to Reproduce

设置如下 option,图例的 symbol 没有旋转
option = {
xAxis: {},
yAxis: {},
legend: {
show: true,
symbolRotate: "inherit",
},
series: [
{
name: "ttt",
symbolSize: 20,
symbol: "triangle",
symbolRotate: 180,
data: [
[10.0, 8.04],
[8.07, 6.95],
[13.0, 7.58],
[9.05, 8.81],
[11.0, 8.33],
[14.0, 7.66],
[13.4, 6.81],
[10.0, 6.33],
[14.0, 8.96],
[12.5, 6.82],
[9.15, 7.2],
[11.5, 7.2],
[3.03, 4.23],
[12.2, 7.83],
[2.02, 4.47],
[1.05, 3.33],
[4.05, 4.96],
[6.03, 7.24],
[12.0, 6.26],
[12.0, 8.84],
[7.08, 5.82],
[5.02, 5.68]
],
type: 'scatter'
}
]
};

### Current Behavior

设置 legend 的symbolRotate 不生效

### Expected Behavior

期望设置了之后,图例的旋转跟跟随series

### Environment

```markdown
- OS: win11
- Browser: chrome
- 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.