c3js / c3js/c3

IE 11 legend toggle

Open
#2,528 6 comments 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

**Steps to reproduce:**

1. Open any page with c3 chart in IE 11, for example [area chart](https://c3js.org/samples/chart_area.html) or [pie chart](https://c3js.org/samples/chart_pie.html)
2. Try to toggle any item on legend
3. See the chart with hidden item
![image](https://user-images.githubusercontent.com/43816231/48606008-722dcf00-e98f-11e8-9fff-f7de5f8f39dd.png)
Or
![image](https://user-images.githubusercontent.com/43816231/48606094-b28d4d00-e98f-11e8-9f31-b195d3e806af.png)

**Expected result:**
Data should not dissapear from chart.

Maybe it is because IE doesn't support `display: initial` css style and when api.show is called it doesn't remove `display: none` that was added in api.hide
https://github.com/c3js/c3/blob/9f546012615afa9b2c2fb85f36cbe7332cc374f7/src/api.show.js#L13

* **C3 version**: 0.6.7
* **D3 version**: 5.6.0
* **Browser**: IE 11
* **OS**: win10 x64

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.