apache / echarts

Apache ECharts is a powerful, interactive charting and data visualization library for browser
https://echarts.apache.org
Apache License 2.0
60.15k stars 19.6k forks source link

dataZoom data shadow is rendered incorrectly if points are not evenly spaced on time axis #15921

Closed Rogach closed 6 days ago

Rogach commented 2 years ago

Version

5.2.1

Reproduction link

https://codepen.io/Rogach/pen/XWaNXpN

Steps to reproduce

Open the pen from the link, wait for it to load, compare the chart shape in the chart area with data shadow in the dataZoom component.

What is expected?

The dataZoom rendering looks similar to the chart values.

What is actually happening?

The data shadow in dataZoom is rendered as if all points are at the same distance from each other, and so the area is distorted.

Here's an image from the reproduction link for your convenience:

echart-datazoom-issue

echarts-bot[bot] commented 2 years ago

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 it contains a minimum reproducible demo and necessary images to illustrate. Otherwise, our committers will ask you to do so.

A minimum reproducible demo should contain as little data and components as possible but can still illustrate your problem. This is the best way for us to reproduce it and solve the problem faster.

You may also check out the API and chart option to get the answer.

If you don't get helped for a long time (over a week) or have an urgent question to ask, you may also send an email to dev@echarts.apache.org. Please attach the issue link if it's a technical question.

If you are interested in the project, you may also subscribe to our mailing list.

Have a nice day! 🍵

github-actions[bot] commented 1 week ago

This issue has been automatically marked as stale because it did not have recent activity. It will be closed in 7 days if no further activity occurs. If you wish not to mark it as stale, please leave a comment in this issue.

github-actions[bot] commented 6 days ago

This issue has been automatically closed because it did not have recent activity. If this remains to be a problem with the latest version of Apache ECharts, please open a new issue and link this to it. Thanks!