feat(echarts): add data zoom options (start/end/lock) #29421
+110
−101
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
SUMMARY
Add 3 Customization Options for echarts data zoom:
Currently, when Data Zoom is enabled in ECharts, the default start and end values are set to 0 and 100, respectively, which means all data is displayed in a single chart by default. This may not be ideal for high-density data scenarios.
By introducing these customization options, users can set the default data range for data zooming. This can be particularly beneficial for users with high-density data, allowing them to control the default size of the sliding window more effectively.
For example, users can set start to 0 and end to 10, which will display the top 10% of the data by default.
Users can still navigate through the rest of the data range by dragging the data zoom bar.
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
Before:
After:
TESTING INSTRUCTIONS
ADDITIONAL INFORMATION