tmtron commented on issue #15775:
URL: https://github.com/apache/echarts/issues/15775#issuecomment-996834908
>We are trying to keep all exposed API are simple and consistent.
In the case of a click event for the data-zoom slider, there is anyway only
very little info that you can send along:
* the click point
* optionally the selected range.
this is maybe not required, when you can also ask the chart-instance fot
he currently selected range and maybe find out if the click-point is in the
selected zoom range, or outside
>API that only solve one very specific case needs to be added very carefully.
A click event is something very generic and for sure not tied to a single
use-case.
There are many more things that this can be used for:
e.g. we have a config mode, where the users can configure/move/resize the
charts. in this mode, a click on the zoom slider could bring up a config
dialog, where they can configure the slider: e.g.
* [slider
properties](https://echarts.apache.org/en/option.html#dataZoom-slider): color,
handleSize, ..
* a check-box if they want to show the slider at all
Another use-case that you have mentioned is the click-moves-the-zoom-window
feature.
This could easily be implemented by users of the library via this click
event.
Even better; we could implement our own strategy: e.g. maybe we want that
clicking should not move the zoom window, but expand or shrink the window to
the click-point
> > Well, I don't know a better way to do this. However I am very open to
suggestions.
>
> From my side. Your first and second solution sounds more solid on the user
experience. But that's only my humble opinion. I'm just not convinced that
adding click event on `dataZoom` can provide a good enough solution to solve
cases like this.
Well, I also thought that at first. But in the meanwhile I have changed my
mind and think that our users are right.
When you use the zoom slider handles to select a suitable range, then you
don't want to move the mouse away, to a button or menu - you want to
immediately invoke the load-action by a simple click.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]