You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2023/01/19 21:34:20 UTC
[GitHub] [echarts] twoco opened a new issue, #18195: [Feature] Zoom reset by button and/or double click.
twoco opened a new issue, #18195:
URL: https://github.com/apache/echarts/issues/18195
### What problem does this feature solve?
Reset dataZoom slide by e.g. double click and / or a button. Currently you have to drag both handles to their ends to reset the zoom.

### What does the proposed API look like?
Maybe a property to the options of the `dataZoom`? Maybe enabled by default? Something like `resetButton` and/or `resetGestures` or `resetDbClick`.
--
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: commits-unsubscribe@echarts.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
[GitHub] [echarts] helgasoft commented on issue #18195: [Feature] Zoom reset by button and/or double click.
Posted by "helgasoft (via GitHub)" <gi...@apache.org>.
helgasoft commented on issue #18195:
URL: https://github.com/apache/echarts/issues/18195#issuecomment-1399583619
this will do - [Demo Code](https://echarts.apache.org/examples/en/editor.html?c=line-simple&code=PYBwLglsB2AEC8sDeAoWsAeBBDEDOAXMmurGAJ4gCmRA5AMYCGYVA5sAE7m0A0J6AE2aMiAbVoBZGL1i0AKgFcqM2gHUqAlXIAWClQDEOEFQGVmphdFoBdEgF8-6cjnxFUpMpRqyAbowA2SrT2jrB4VEZUhLCi_MQegsJiAIwArAAMPLAATADMmTnZACxZ2ckAHFnJualVRQDspQBs6dahHhTUdABGjBzBHnYkbSRCYIwAWsDAALZund60eP4QAhEyeOMcYEQZQ3YA3Ch-HLAAXqeIM-QAwtp9YAB0rFRgExwAFACURxePMB9aAJuv56Ct6ABrGQAM0s9EgMFgHxAfUYMzwX2IAEhrncHo8BPgUWB6NosPCoNAPqgsViFnQxpNpjMZChaZsHkQCrAAPQ82DUDj0KjQcYvWDAaFhLaQaCsAXAPAQBHQA6wdKwAC0sGS6XSbKxIoERF1GvQfIFEWFosY4slsCNEDlCqVKrVGu1prZdi-KB9QA)
double-click anywhere on the canvas
--
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: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
[GitHub] [echarts] twoco commented on issue #18195: [Feature] Zoom reset by button and/or double click.
Posted by "twoco (via GitHub)" <gi...@apache.org>.
twoco commented on issue #18195:
URL: https://github.com/apache/echarts/issues/18195#issuecomment-1399621632
Looks good. Thanks 👍
I can't find `getZr` in API docs. But it seems that It returns the [zrender](https://github.com/ecomfe/zrender) instance. The drawing library behind ECharts. ... We could add an option to `dataZoom` for that feature of zoom reset.
--
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: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
[GitHub] [echarts] Ovilia closed issue #18195: [Feature] Zoom reset by button and/or double click.
Posted by "Ovilia (via GitHub)" <gi...@apache.org>.
Ovilia closed issue #18195: [Feature] Zoom reset by button and/or double click.
URL: https://github.com/apache/echarts/issues/18195
--
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: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
[GitHub] [echarts] Ovilia commented on issue #18195: [Feature] Zoom reset by button and/or double click.
Posted by "Ovilia (via GitHub)" <gi...@apache.org>.
Ovilia commented on issue #18195:
URL: https://github.com/apache/echarts/issues/18195#issuecomment-1411648656
`getZr` is not in the docs because in most cases developers are not expected to get hands dirty with the underlying zrender instance. Thanks @helgasoft for the help. Officially, we would suggest you listen to the DOM events to check for double click instead of exposing zrender in this case. But yes, using zrender is an easier way.
--
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: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org