Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clearLoop 不会让 pie 恢复已经高亮的块 #10

Open
lcysgsg opened this issue Nov 17, 2020 · 2 comments
Open

clearLoop 不会让 pie 恢复已经高亮的块 #10

lcysgsg opened this issue Nov 17, 2020 · 2 comments
Labels

Comments

@lcysgsg
Copy link

lcysgsg commented Nov 17, 2020

为什么不直接调用 stopAutoShow 呢?

  function clearLoop() {
    if (timeTicket) {
      clearInterval(timeTicket);
      timeTicket = 0;
    }
    chart.off("mousemove", stopAutoShow);
    zRender.off("mousemove", zRenderMouseMove);
    zRender.off("globalout", zRenderGlobalOut);
  }

  // 改成

  function clearLoop() {
    stopAutoShow();
    chart.off("mousemove", stopAutoShow);
    zRender.off("mousemove", zRenderMouseMove);
    zRender.off("globalout", zRenderGlobalOut);
  }
@lcysgsg
Copy link
Author

lcysgsg commented Nov 17, 2020

如果是觉得饼图默认情况就是有一个高亮的话, 那在数据更新需要重新循环的情况时,应该怎么办呢?

@chengwb53
Copy link
Owner

如果是觉得饼图默认情况就是有一个高亮的话, 那在数据更新需要重新循环的情况时,应该怎么办呢?

可以改成这样的。

@chengwb53 chengwb53 added the bug label Nov 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants