Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IE 11 not showing lines/bars when you show data from legend. #2486

Closed
ghost opened this issue Sep 26, 2018 · 1 comment
Closed

IE 11 not showing lines/bars when you show data from legend. #2486

ghost opened this issue Sep 26, 2018 · 1 comment

Comments

@ghost
Copy link

ghost commented Sep 26, 2018

I can create this problem in https://c3js.org/examples.html in any graph type. When I click on any data in the legend, it will hide it. When i click it again to show the data it will do everything except show the line.

i was able to show the line by going to the inspector and into the lines class
c3-chart => c3-chart-lines => (Lines) the style for the line was (display: none); I changed it to (display: block) and it showed the line.

I am not sure if there is a javascript function that is not supported by IE 11 or something else.
1
2
3

  • C3 version: v0.6.7
  • D3 version: v5.6.0
  • Browser: IE 11
  • OS: Windows 10
@ghost
Copy link
Author

ghost commented Oct 9, 2018

I fixed the problem. If you go into the source code C3.js and search for this line of code

targets.transition().style('display', 'initial', 'important').style('opacity', 1, 'important').call($$.endall, function () { targets.style('opacity', null).style('opacity', 1); });

you can change 'initial' to 'block' and it will work in ie 11. It also works in chrome and firefox, etc after changing it to block.

@ghost ghost closed this as completed Oct 9, 2018
@ghost ghost mentioned this issue Nov 28, 2018
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants