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
Labels
Milestone

Comments

@Manjunath-Siddappa
Copy link

@Manjunath-Siddappa 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

This comment has been minimized.

Copy link
Member

@simonbrunel simonbrunel commented Apr 20, 2017

@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

This comment has been minimized.

Copy link
Member

@etimberg etimberg commented Apr 22, 2017

Resolved in #4165

@etimberg etimberg closed this Apr 22, 2017
@Manjunath-Siddappa

This comment has been minimized.

Copy link
Author

@Manjunath-Siddappa Manjunath-Siddappa commented May 2, 2017

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
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.