apache / apache/echarts

[Bug] markLine.data[0].lineStyle.cap invalid

Open
#20,925 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

e.g.5.22

### Link to Minimal Reproduction

https://echarts.apache.org/zh/option.html#series-line.markLine.data.0.lineStyle.cap

### Steps to Reproduce

![Image](https://github.com/user-attachments/assets/22bc2caa-195f-40e3-9979-5eb817f9abe3)

### Current Behavior

According to the ECharts documentation, the cap property is used to set the line end style (e.g., round represents a rounded end, butt represents a flat end, and square represents a square end). It is expected that after setting this property, the corresponding line ends in the chart will exhibit the corresponding style.

### Expected Behavior

In the actual configuration, regardless of whether the cap property is set to round, butt, or square, the line end style remains unchanged and does not exhibit the expected effect.

### Environment

```markdown
- Browser:

Visit the ECharts official website configuration page ( Official website address ).
In the configuration items, add the relevant configuration of markLine, for example:
```

### Any additional comments?

![Image](https://github.com/user-attachments/assets/20e45c8b-fa21-4d8f-a828-742417788ecb)

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.