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

Chart.js is not loading inside the <iframe> #4102

Closed
Manjunath-Siddappa opened this issue Apr 3, 2017 · 3 comments
Closed

Chart.js is not loading inside the <iframe> #4102

Manjunath-Siddappa opened this issue Apr 3, 2017 · 3 comments
Assignees
Milestone

Comments

@Manjunath-Siddappa
Copy link

Manjunath-Siddappa commented Apr 3, 2017

Hi
I am using chart.js version 2.5.0

Chart.js is not working inside the iframe.
<div><iframe><canvas></canvas></iframe></div>

Error: Failed to create chart: can't acquire context from the given item

i am working one page which has master header and footer.
on the left menu click, ifames are loaded in the content area.
inside the <iframe> i am loading chart.js

Expected Behavior

Chart need to render in chrome and IE11.

Current Behavior

Chart is rendering in firefox not in other browsers.
i am looking for chrome and IE11 fix.

Possible Solution

Steps to Reproduce (for bugs)

Link to Jsfiddle
http://jsfiddle.net/mW8kv/27/

Context

I am working on chart based application, here i want to include chart.js and render charts accordingly.

Environment

  • Chart.js version: 2.5.0
  • Browser name and version: Chrome 56.0.2924.87, IE 11, Firefox
@simonbrunel
Copy link
Member

@Manjunath-Siddappa sorry for the late reaction on this ticket. I think #4152 is the same issue and we are thinking about the solution detailed in this comment. Are you able to try it locally and confirm it works in your use case?

@etimberg
Copy link
Member

Resolved in #4165

@Manjunath-Siddappa
Copy link
Author

Hi

is this issue is fixed.
I saw this comment in 4165
@simonbrunel simonbrunel deleted the simonbrunel:fix/4102

If yes, could anyone guide me which files i have to merge or take?

Thanks
Manjunath

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants