c3js / c3js/c3

Tooltip won't update while mouse is hovered over chart and data changes

Open
#2,307 1 comment 0 reactions 0 assignees View on GitHub
C-bug
Dominant language
JavaScript
Stars
9.3k
Forks
1.4k
Avg merge
6d 16h
Merged PRs (30d)
1

Description

C3 version: c3.min-96759a46.js
D3 version: d3-3.5.6.min-77adef17.js
Browser: Chrome, Firefox, ...
OS: Mac, Windows, ...

I'm using c3 in a project where live data is constantly changing a bar chart. The customer reported a problem that the tooltip data would mismatch the bar being shown. I could reproduce that.

Just visit your own homepage http://c3js.org/samples/chart_bar_stacked.html and hover over one of the bars while its data is changing. The tooltip will not update accordingly while the mouse is hovered over the bar. The user needs to move the mouse in order to see updated values.

Is there maybe a way I can force the tooltip to be refreshed so I don't need to redraw (meaning using destroy and generate) the whole chart again every 5 seconds?

![test](https://user-images.githubusercontent.com/4295336/37443636-42bb9f62-2848-11e8-9d7c-e0b09178a906.gif)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.