c3js / c3js/c3

High CPU usage with C3

Open
#1,067 3 comments 0 reactions 0 assignees View on GitHub
C-performance resolved maybe
Dominant language
JavaScript
Stars
9.3k
Forks
1.4k
Avg merge
6d 16h
Merged PRs (30d)
1

Description

After I load a C3 chart using the below code, it seems to be taking up a lot of CPU usage. It all stems from the c3.generate() call.

I'm assuming the library is looking for browser resize/interaction updates. (Screen shot attached, where in Chrome the tag is constantly being updated/scanned.)

In my case, I only need to draw the chart but not do anything else. (I do have a lot of data points to work with.)

Is there a way to improve performance, perhaps by disabling this C3 behavior?

![screen shot 2015-03-18 at 10 01 14 am](https://cloud.githubusercontent.com/assets/312299/6714881/ff066dd6-cd57-11e4-8a9c-a98673c662a0.png)

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.