[BUG] Tooltip hides when update is called

[BUG] If I am over a slice in pie chart and I tooltip is visible when new data come in and update the chart, tooltip becomes hidden when it should not. I am using 2.7.1

Expected Behavior

Tooltip should not be hidden but instead updated with new values and stay visible.

Current Behavior

[BIf I am over a slice in pie chart and I tooltip is visible when new data come in and update the chart, tooltip becomes hidden or flashing.

Possible Solution

Steps to Reproduce (for bugs)

  1. https://jsfiddle.net/pantonis/amgagdmq/19/

Context

This happens on all charts (pies, bars, radar etc..)

Environment

  • Chart.js version: 2.7.1
  • Browser name and version: Chrome
  • Link to your project: N/A

Author: Fantashit

4 thoughts on “[BUG] Tooltip hides when update is called

  1. Agree, we could cache the last mouse/tap position, so when calling chart.update():

    if tooltip visible {
      if data intersect {
        update toolip
      } else {
        hide tooltip
      }
    }
  2. This is just annoying me, simple solution: revert back to chart.js@2.7.0 there it works. I don’t know why this receives no priority, I don’t have the experience myself to do a PR, otherwise I would.

Comments are closed.