c3js / c3js/c3

Graph is not been shown after hiding other lines

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

Description

Hi,
I am trying to build a simple graph with line chart. The data is as follows :

**var chart = c3.generate({
data: {
columns: [
["data1", 26215486, 113143481, 108414358, 115456558, 105712268, 115723153],
["data2", 20079235, 78014461, 76462372, 81040896, 75049285, 80514590],
["data3", 101504641, 396488482, 323120625, 340598418, 352155274, 360210597],
["data4", 1.31, 1.45, 1.42, 1.42, 1.41, 1.44],
["data5", 3.87, 3.50, 2.98, 2.95, 3.33, 3.11]
]
}
});**

However when I hide data1,data2 and data3 by clicking on corresponding legends, nothing is showing in the graph. As data4 and data5 values are very small compared to others, I can see the Y axis tries to adjust the values and those 2 lines are going up very fast and disappear in no time.

Any help would be appreciated.

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.