Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linechart zoom shows wrong preview #10082

Open
tmtron opened this issue Mar 11, 2019 · 5 comments
Open

Linechart zoom shows wrong preview #10082

tmtron opened this issue Mar 11, 2019 · 5 comments
Labels
en This issue is in English enhancement
Milestone

Comments

@tmtron
Copy link

tmtron commented Mar 11, 2019

Version

4.2.1-rc1

Reproduction link

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

see also: related Stackoverflow question

@echarts-bot
Copy link

echarts-bot bot commented Mar 11, 2019

Hi! We've received your issue and please be patient to get responded. 🎉
The average response time is expected to be within one day for weekdays.

In the meanwhile, please make sure that you have posted enough image to demo your request. You may also check out the API and chart option to get the answer.

Have a nice day! 🍵

@echarts-bot echarts-bot bot added bug en This issue is in English pending We are not sure about whether this is a bug/new feature. waiting-for-help labels Mar 11, 2019
@deqingli deqingli added en This issue is in English enhancement and removed bug en This issue is in English waiting-for-help pending We are not sure about whether this is a bug/new feature. labels Mar 12, 2019
@haskelcurry
Copy link

Hello, any updates on this? This is a very important feature

@haskelcurry
Copy link

haskelcurry commented Jan 18, 2021

The issue was opened in 2019 and it's still present in 5.0.
The problem is: the preview doesn't correspond to actual chart data, even approximately.
Here's a bright example: https://echarts.apache.org/examples/en/editor.html?c=line-draggable
See the previews for X and Y and compare it to actual curve on the graph. There is no obvious logic behind it.
It gets even more interesting when there are multiple lines on the chart: the preview still draws only one line.
Let me repeat that this feature seems to be very important for various common cases.

For now I'm going to replace the SliderZoomView.js with my own custom component...

Thank you!

@pissang pissang added this to the 5.2.0 milestone Jan 19, 2021
@tvddev
Copy link

tvddev commented Apr 12, 2022

@pissang - Is there any update on this issue? It is not in the v5.2 release. What are other people using to replace this?

@espezaliate
Copy link

Any updates on this? I'm facing the same issue in v5.4.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
en This issue is in English enhancement
Projects
None yet
Development

No branches or pull requests

6 participants