c3js / c3js/c3

Flow API accumulates points when tab is not focussed

Open
#1,097 12 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
9.3k
Forks
1.4k
Avg merge
6d 16h
Merged PRs (30d)
1

Description

I've created a chart which shows live data in a chart using flow. However when the browser tab with the chart in it is not focussed the chart will accumulate data points until you return to the browser tab. Sometimes slowing down your browser until the chart has been rendered.

You can simulate this by opening the fiddle: http://jsfiddle.net/2camvme7/
And letting it run while you open up a new browser tab and stay there for a few minutes. When you return to the fiddle you'll see that the chart now has a lot more points. But when you keep the browser tab with the fiddle open it will work as its supposed to.

Only tested with Chrome (41.0.2272.104).

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.