apache / apache/echarts

LineChart with Datazoom: Data is displayed incorrectly

Open
#14,227 2 comments 0 reactions 0 assignees View on GitHub
bug en topic: line
Dominant language
TypeScript
Stars
67.3k
Forks
19.8k
Avg merge
11d 14h
Merged PRs (30d)
8

Description

### Version
5.0.1

### Reproduction link
[https://echarts.apache.org/examples/en/editor.html?c=line-aqi](https://echarts.apache.org/examples/en/editor.html?c=line-aqi)

### Steps to reproduce
Add the following datazoom option to the example:
```js
{
show: true,
type: 'slider',
orient: 'vertical'
}
```

Move the lower limit of the y axis range in the datazoom slider to something around 100.

### What is expected?
The data should still be displayed correctly. That is, the lines should partially disappear from view, but the qualitative data history must be maintained.
![line-aqi-2](https://user-images.githubusercontent.com/7033778/107068480-fc68e480-67e0-11eb-8de4-c8d79b25a726.png)

### What is actually happening?
The qualitative history of the data is not maintained. Instead the last point before the data is leaving the displayed range and the first point after entering the displayed range again are connected by a line in the visible chart excerpt. That changes the qualitative data history completely.

![line-aqi](https://user-images.githubusercontent.com/7033778/107068496-012d9880-67e1-11eb-90dc-6771aea8e484.png)

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.