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 2019/10/25 01:08:57 UTC

[GitHub] [incubator-echarts] catscarlet edited a comment on issue #11098: dataZoom won't update its status when min/max of xAxis are changed.

catscarlet edited a comment on issue #11098: dataZoom won't update its status when min/max of xAxis are changed.
URL: https://github.com/apache/incubator-echarts/issues/11098#issuecomment-546156031
 
 
   > Hi @catscarlet ,
   > I have made some change to your example:
   > https://gallery.echartsjs.com/editor.html?c=xync4-wJe&v=2
   > 
   > I think it probably meet your requirement.
   > 
   > The change is: do not specify `dataZoom.startValue` and `dataZoom.endValue` manually, but always specify `xAxis.min`, `xAxis.max`.
   > 
   > @yufeng04 I think it is not a bug but a feature by design, if I haven't missed something.
   > 
   > There are two mode of dataZoom, auto determined by [dataZoom.rangeMode](https://www.echartsjs.com/en/option.html#dataZoom-inside.rangeMode):
   > 
   > * `'value'`: If we set `dataZoom.startValue` or `dataZoom.endValue`, it will be in `'value'` mode, where the extent of xAxis will be always the `dataZoom.startValue` and `dataZoom.endValue` if we don't change it, as what @catscarlet 's example looks like in its initial state.
   > * `'percent'`: By default `dataZoom` is in `'percent'` mode, where `100%` represents 100% of `[xAxis.min, xAxis.max]`, which is what we want. And why in @catscarlet 's example after we scroll mouse it become normal? because when scrolling mouse it triggers `insde dataZoom` and it auto shift to `'percent'` mode.
   
   I read your demo.
   This one can't meet the requirement.
   Without option.dataZoom.startValue or option.dataZoom.endValue, how can zoom-out be produced when the first-screen-data should be able to be zoomed?
   

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org