apache / apache/echarts

[Bug] Line chart drops partially visible lines entirely

Open
#21,564 4 comments 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

6.0.0

### Link to Minimal Reproduction

https://echarts.apache.org/examples/en/editor.html?c=line-simple&code=bVA9D4IwFNz9FW9jcfD5gVrj4Ohs4iBhaKQxTbQlggZi-O9eC6hVSY6Ue9zr3dm81NbQmh4DompT6UL4I1FZ50pQdJSlOtlrHQ09m8lSCkpoNCRiYAxMgGk77p8ZqBiYAwtgGYwZaoaaoWaoOVQz1Aw1Q81Qc6BOcW4c4awcrL18Gdam0Jnq7PpEW5OpSsCypy7a7OX5pna5NMJZaVlZ_bC4pf7TyN391-3HMoH8_QpB895doa5aQZr4WbvgVd8rToImZuk7XoJG4s9vxA_mrrKQQFGx68R30w86q2dtVOSpBu900Kye&enc=deflate

### Steps to Reproduce

Code see provided sandbox.

Scrolling sideways slowly, one can see the following images (notice numbers on the x-axis):

Image

Image

Image

### Current Behavior

As soon as one of the endpoints of a line is outside the visible area, the entire line vanishes.

### Expected Behavior

The visible part of a line should be drawn, even when one of the endpoints (or both endpoints) is outside the visible area.

### Environment

```markdown
- OS: Debian 13
- Browser: Firefox 140 ESR
- Framework: (none)
```

### 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.