apache / apache/echarts

[Bug] Adding shadow makes markLine disappear if the line is horizontal or vertical

Open
#21,407 5 comments 1 reaction 0 assignees View on GitHub
bug en pending SVG
Dominant language
TypeScript
Stars
67.3k
Forks
19.8k
Avg merge
11d 14h
Merged PRs (30d)
8

Description

### Version

6.0.0

### Link to Minimal Reproduction

https://codepen.io/soundlake/pen/yyORLNg

### Steps to Reproduce

1. Create chart with `markLine`
2. Add data that can produce horizontal (no height) or vertical (no width) mark line
3. Add `shadow*` to the `lineStyle`

### Current Behavior

The line gets disappeared while symbols and label are shown.

### Expected Behavior

The line also be shown.

### Environment

```markdown
- OS: Windows 11
- Browser: Edge 142
- Framework: Plain JS
```

### Any additional comments?

It might be a `zrender` bug, but at least, the doc should warn.

This is a known issue for SVG, at least on [StackOverflow](https://stackoverflow.com/questions/47758565/adding-fedropshadow-to-a-vertical-line-in-svg-makes-it-disappear).

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.