c3js / c3js/c3

visibility: hidden not hiding the entire chart.

Open
#1,994 1 comment 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 have two divs which are overlappting each other. One div has chart in it.

```



This should not be shown when chart is being shown



```
chart2 has chart which is appended using c3.generate and chart2data has some text.
Here is the toggle function.
var ToggleDiv = function(id1, id2) {
d3.select('#'+id1) .style("opacity", "0");
d3.select('#'+id2) .style("opacity", "1");
}
This is working fine. but when I try this below function it is not hiding the entire chart. Still I can see the legends of the chart after hiding it.

var ToggleDiv = function(id1, id2) {
d3.select('#'+id1) .style("visibility", "hidden");
d3.select('#'+id2) .style("visibility", "visible");
}

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.