Skip to content

[Bug] When dataZoom both set minValueSpan and maxValueSpan, zoom in to max, work wrong #18919

@kitee0325

Description

@kitee0325

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

- OS:
- Browser:
- Framework:

Any additional comments?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugenThis issue is in EnglishpendingWe are not sure about whether this is a bug/new feature.staleInactive for a long time. Will be closed in 7 days.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions