Skip to content

[Bug] 在动画过程中无法获取endLabel的坐标位置[急,急,急] #18749

Closed as not planned
@liubin595338764

Description

@liubin595338764

Version

5.4.2

Link to Minimal Reproduction

https://www.pionex.com/static/media/grid_zhtw.b27dae30.gif

Steps to Reproduce

null

Current Behavior

如图,动画效果我设置了endLabel的圆点,但是动画过程中我无法获取到endLabel的实时位置;
因为我需要根据endLabel的坐标算出横线的位置;

着急,麻烦指点下;

image

Expected Behavior

期望能在endLabel.formatter中能获取到当前的坐标位置;

或者animation动画的每一帧回调上能获取到endLabel的位置也可以。

myChart.getZr().animation.on("frame", function (...arg) {
    console.log(arg);
  });

感谢。

Environment

- OS: mac
- Browser:chrome
- Framework: vue@3

Any additional comments?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    not-a-bugstaleInactive for a long time. Will be closed in 7 days.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions