apache / echarts

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

DataZoom refresh #20458

Open Jackerking opened 3 weeks ago

Jackerking commented 3 weeks ago

Brief Information

This pull request is in the type of:

What does this PR do?

Fixes the DataZoom component view refresh issue that caused only part of the plot to render correctly.

Fixed issues

Details

Before: What was the problem?

In the previous implementation, the DataZoom component failed to refresh the entire plot area after zoom interactions, causing only parts of the plot to render, while the rest remained unrefreshed or partially visible.

Screenshot Before Fix (Optional)

image

After: How does it behave after the fixing?

After applying this fix, the DataZoom component now fully refreshes the plot area, rendering the entire visual correctly after user interactions like zooming or panning. This was achieved by adding a dispatchAction call in the render method, forcing the view to reset and display the specified data range from 0 to 100%.

Screenshot After Fix

image

Document Info

One of the following should be checked.

Misc

ZRender Changes

Related test cases or examples to use the new APIs

N.A.

Others

Merging options

Other information

N.A.

echarts-bot[bot] commented 3 weeks ago

Thanks for your contribution! The community will review it ASAP. In the meanwhile, please checkout the coding standard and Wiki about How to make a pull request.