smoothie icon indicating copy to clipboard operation
smoothie copied to clipboard

Tooltip does not display when chart is stopped

Open eanders-ms opened this issue 4 years ago • 1 comments

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.

eanders-ms avatar Jun 24 '20 17:06 eanders-ms

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

WofWca avatar Sep 14 '21 15:09 WofWca