Skip to content

[Bug] Influence of 'zoom' attributes #17080

@zbkha

Description

@zbkha

Version

5.3.2

Link to Minimal Reproduction

https://codepen.io/zbkha/pen/yLvoJeE

Steps to Reproduce

When I added the 'zoom' attribute to the element where the chart is located, visually, the chart did zoom, but the mouse was not suspended in the correct position. I'm not sure if it's a bug, but it does cause me a lot of trouble.

Current Behavior

The mouse was not suspended in the correct position.

Expected Behavior

The mouse should be suspended in the correct position but it was not.

Environment

- OS:Windows 10
- Browser:Chrome 101.0.4951.67
- Framework:Always

Any additional comments?

给图表所在html元素添加zoom属性后,鼠标放上去会发生偏移,最终问题在添加css后得以解决,但整个过程十分麻烦,Echarts有没有什么api可以自适应zoom属性。

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions