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

Tooltip does not display when chart is stopped #121

Open
eanders-ms opened this issue Jun 24, 2020 · 1 comment
Open

Tooltip does not display when chart is stopped #121

eanders-ms opened this issue Jun 24, 2020 · 1 comment

Comments

@eanders-ms
Copy link

It is difficult to read the tooltip when the chart is animating. The chart scrolls under the mouse location, changing the tooltip value. Chasing the sample is sub-optimal, so I tried stopping the chart, but when it is stopped, tooltips no longer appear.

Feature request: Keep tooltips enabled when chart is stopped.

@WofWca
Copy link
Collaborator

WofWca commented Sep 14, 2021

Workaround:

chart.stop();
const stoppedAt = Date.now();
canvas.addEventListener('mousemove', (...args) => {
  chart.mousemove(...args);
  requestAnimationFrame(() => {
    chart.render(canvas, stoppedAt);
  });
})

just the idea, not production-ready code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants