What problem does this feature solve?
现在使用dataZoom中如果对某个区域放大了若干次,如果想要回到初始的缩放大小,那么就需要点击回退按钮相应多的次数。
而如果使用dispatchAction,设置datazoom的start和end为0和100。但是回退的按钮却一直处于激活的状态。
想请问,今后更新会不会推出类似一键返回初始缩放状态的功能?
What does the proposed API look like?
dataZoom 可以自定义配置一个新的类似restore的按钮,但是这个restore并不会让图表返回初始状态(不会把数据清除)。
2条答案
按热度按时间n3schb8v1#
@haozhelee It seems you are not using English, I've helped translate the content automatically. To make your issue understood by more people and get helped, we'd like to suggest using English next time. 🤗
TRANSLATED
TITLE
[Feature] About dataZoom Back; About dataZoom back after zooming in
BODY
What problem does this feature solve?
Now using dataZoom, if you zoom in on a certain area several times, if you want to return to the initial zoom size, you need to click the back button for a corresponding number of times.
And if you use dispatchAction, set the start and end of datazoom to 0 and 100. But the back button is always active.
I would like to ask, will future updates introduce a function similar to returning to the initial zoom state with one click?
What does the proposed API look like?
dataZoom can customize a new button like restore, but this restore will not return the chart to its initial state (it will not clear the data).
dgiusagp2#
没有这方面的开发计划,如果感兴趣的话欢迎 PR