Chart.js icon indicating copy to clipboard operation
Chart.js copied to clipboard

Ability to force tooltip redraw

Open Pointy opened this issue 11 years ago • 3 comments

When using a custom tooltip mechanism wired not to mouse events but to "click", it would be helpful to have a way to control the forceRedraw parameter to the showTooltip routine. I don't see any way to do that currently, and it makes click-driven popups from charts behave poorly when the popups have their own means of dismissal.

A "forceTooltips" option that would be passed along by the chart varieties would be nice.

Pointy avatar Jan 22 '15 05:01 Pointy

I'll see if I can get something working and submit a pull request.

Pointy avatar Jan 22 '15 06:01 Pointy

@tannerlinsley : this shouldn't be too hard to implement, should it?

derekperkins avatar Jun 04 '15 05:06 derekperkins

I believe this is fixed in v2. At a minimum you could reset the tooltip and then redraw the chart.

etimberg avatar Oct 16 '16 03:10 etimberg