apache / apache/echarts

Linechart zoom shows wrong preview

Open
#10,082 6 comments 23 reactions 0 assignees View on GitHub
en enhancement
Dominant language
TypeScript
Stars
67.3k
Forks
19.8k
Avg merge
11d 14h
Merged PRs (30d)
8

Description

### Version
4.2.1-rc1

### Reproduction link
[https://jsfiddle.net/tmtron/0beLxwh2/21/](https://jsfiddle.net/tmtron/0beLxwh2/21/)

### Steps to reproduce

- add a null datapoint at 1995
- add some data between 1997 and 2000
- add a final null datapoint at 2005

### What is expected?
the zoom slider background data should show the real data in the middle of the slider

### What is actually happening?
The data in the zoom slider is stretched. I think this is a bug, unless I am missing some settings (but I could not find any switches on the zoom-slider to make this work)

---
The following screenshot shows the issue. The area outside of the yellow highlighted rectangle in the zoom range (1) should not be visible.

![image](https://user-images.githubusercontent.com/20422904/54110090-c0545b80-43e0-11e9-992e-07b7b5047d61.png)

see also: related [Stackoverflow question](https://stackoverflow.com/questions/55062223/linechart-zoom-shows-wrong-preview)

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.