Fixes the DataZoom component view refresh issue that caused only part of the plot to render correctly.
Fixed issues
18850: Setting up the DataZoom renders part of the plot.
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)
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
Document Info
One of the following should be checked.
[x] This PR doesn't relate to document changes
[ ] The document should be updated later
[ ] The document changes have been made in apache/echarts-doc#xxx
Misc
ZRender Changes
[ ] This PR depends on ZRender changes (ecomfe/zrender#xxx).
Related test cases or examples to use the new APIs
N.A.
Others
Merging options
[x] Please squash the commits into a single one when merging.
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
18850: Setting up the DataZoom renders part of the plot.
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)
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 therender
method, forcing the view to reset and display the specified data range from 0 to 100%.Screenshot After Fix
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.