You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "li942475402 (via GitHub)" <gi...@apache.org> on 2023/07/21 08:58:59 UTC

[GitHub] [echarts] li942475402 opened a new issue, #18919: [Bug] When dataZoom both set minValueSpan and maxValueSpan, zoom to max, work wrong

li942475402 opened a new issue, #18919:
URL: https://github.com/apache/echarts/issues/18919

   ### Version
   
   5.4.3
   
   ### Link to Minimal Reproduction
   
   https://echarts.apache.org/examples/zh/editor.html?c=scatter-simple&code=PYBwLglsB2AEC8sDeAoWsAeBBDEDOAXMgL4A0asAnjvkUmRQCYCGYzAWsMALZEDaFdKnQjY3CNABqzADYBXAKYBlEM2hEATOVHpuzDNPnLV62ABZBsBqOE6wlEAqIByCXgiMFz7TvFTZiipqmj6iegYBxsHmlsQUALo-eAoAThAKhLACNpboeJTcAEbAMkoQAF5OsBoADKEiLGz8uSJ8AIw1AHR1sAAc3WaJLeh8_TUA7KSwAGydAJwArEM6rW0AzN1T450LvcsrWXPdC1P9vW37K-1tm32da2uXOu1mt9vT00-i7RtmU7PnL6rLo9WYPIEjNqvHr9OaferfNoaHb_Tq9DQQw6dNonWDbDEI1Y3XH4zF8DY1NZTV4aR6EyHIrR4tF04ZZZE1JmvMzjMk3Gq4jbg-lZaG415wsmzSlbToaQYi9oc1EaeFspW3M4K9XbGq9KYLNEE9WGzkGzrTPYtIH2RwuPAAY1YYFSzliCRQxAA3EA
   
   ### Steps to Reproduce
   
   zoom to minSpan
   
   ### Current Behavior
   
   when zoom to minSpan, continue zoom, trigger translation
   
   e.g
   maxValueSpan:4,
   minValueSpan:2,
   zoomCenter:[2,any]
   
   axisRange:[0,4]  => zoom in =>  axisRange: [1,3]  => zoom in => axisRange:[2,4]  ??  
   
   ### Expected Behavior
   
   when zoom to minSpan, continue zoom, nothing happen OR just translate little because of zoom center
   maxValueSpan:4,
   minValueSpan:2,
   zoomCenter:[2,any]
   
   axisRange:[0,4]  => zoom in =>  axisRange: [1,3]  => zoom in => axisRange:[1,3]
   
   ### Environment
   
   ```markdown
   - OS:
   - Browser:
   - Framework:
   ```
   
   
   ### Any additional comments?
   
   _No response_


-- 
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] RypAsuka-Akira commented on issue #18919: [Bug] When dataZoom both set minValueSpan and maxValueSpan, zoom in to max, work wrong

Posted by "RypAsuka-Akira (via GitHub)" <gi...@apache.org>.
RypAsuka-Akira commented on issue #18919:
URL: https://github.com/apache/echarts/issues/18919#issuecomment-1666700927

   > [minValueSpan](https://echarts.apache.org/en/option.html#dataZoom-inside.minValueSpan) is about **zoom window size** and it correctly does that in your example: **min** window size is 2 units, **max** window size is 4 units. Where is the problem?
   
   when window size is 2, continue zoom in,  expect nothing happen, actually trigger translate. 
   It seems a little hard to accept.
   
   I guess because the source code does not deal with the minimum scaling, still adjust the position based on the new zoom center, which is no problem in the algorithm, but it looks strange in the interaction


-- 
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] helgasoft commented on issue #18919: [Bug] When dataZoom both set minValueSpan and maxValueSpan, zoom in to max, work wrong

Posted by "helgasoft (via GitHub)" <gi...@apache.org>.
helgasoft commented on issue #18919:
URL: https://github.com/apache/echarts/issues/18919#issuecomment-1666587949

   [minValueSpan](https://echarts.apache.org/en/option.html#dataZoom-inside.minValueSpan) is about **zoom window size** and it correctly does that in your example:  **min** window size is 2 units, **max** window size is 4 units.
   Where is the problem?


-- 
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


Re: [I] [Bug] When dataZoom both set minValueSpan and maxValueSpan, zoom in to max, work wrong [echarts]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #18919:
URL: https://github.com/apache/echarts/issues/18919#issuecomment-3156647496

   This issue has been automatically marked as stale because it did not have recent activity. It will be closed in 7 days if no further activity occurs. If you wish not to mark it as stale, please leave a comment in this issue.


-- 
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] helgasoft commented on issue #18919: [Bug] When dataZoom both set minValueSpan and maxValueSpan, zoom in to max, work wrong

Posted by "helgasoft (via GitHub)" <gi...@apache.org>.
helgasoft commented on issue #18919:
URL: https://github.com/apache/echarts/issues/18919#issuecomment-1666922413

   ok, I see and agree, this is a bug on **mouse scroll**.  
   Scrolling the mouse should perform only zoom-in and zoom-out, **not move** (translate) the zoom window.
   Mouse **click + drag** should be the only way to shift the zoom window.
   The current mix of the two is confusing to users.


-- 
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


Re: [I] [Bug] When dataZoom both set minValueSpan and maxValueSpan, zoom in to max, work wrong [echarts]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #18919:
URL: https://github.com/apache/echarts/issues/18919#issuecomment-3185821043

   This issue has been automatically closed because it did not have recent activity. If this remains to be a problem with the latest version of Apache ECharts, please open a new issue and link this to it. Thanks!


-- 
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


Re: [I] [Bug] When dataZoom both set minValueSpan and maxValueSpan, zoom in to max, work wrong [echarts]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #18919: [Bug] When dataZoom both set minValueSpan and maxValueSpan, zoom in to max, work wrong
URL: https://github.com/apache/echarts/issues/18919


-- 
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