smoothie
smoothie copied to clipboard
Tooltip does not display when chart is stopped
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.
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