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

[ChartJs] Charts not displayed on first load when on Safari #47

Open
cesar-tonnoir opened this issue Nov 24, 2015 · 7 comments
Open

[ChartJs] Charts not displayed on first load when on Safari #47

cesar-tonnoir opened this issue Nov 24, 2015 · 7 comments
Assignees

Comments

@cesar-tonnoir
Copy link
Contributor

Problem tied to chartjs. May have something to do with chartjs/Chart.js#1622

@cesar-tonnoir cesar-tonnoir changed the title [ChartJs] Charta not displayed on first load when on Safari [ChartJs] Chart not displayed on first load when on Safari Nov 24, 2015
@cesar-tonnoir cesar-tonnoir changed the title [ChartJs] Chart not displayed on first load when on Safari [ChartJs] Charts not displayed on first load when on Safari Nov 24, 2015
@byCedric
Copy link

Does it work if you hover your mouse over the empty canvas? Because I experienced the same with IE10, from the issue you just referenced.

@cesar-tonnoir
Copy link
Contributor Author

@byCedric No: it seems to be working only when I delete and recreate the chart, once the page is fully loaded. It looks very similar to a bug I experienced with ChartJs v1 where it was impossible to draw a chart when the chart div container was invisible (display: none)...

I will investigate this one further with @alexnoox and submit a pull request to ChartJs 2.0 if we find something

@cesar-tonnoir
Copy link
Contributor Author

Temporarily fixed by @alexnoox in #50

Next step: find a workaround that would make it work on safari without having to use a loop on the chart's parent visibility.

@cesar-tonnoir
Copy link
Contributor Author

@augusto-velez
Copy link

was anyone able to solve the chart problem for safari (not displayed on first load)

@cesar-tonnoir
Copy link
Contributor Author

cesar-tonnoir commented Jan 18, 2017

@augusto-velez: not really: what we do is that we keep looping until the parent element is visible. Then we draw the chart.
Definitely not a perfect solution but it does the job. Check #50 for details.

@augusto-velez
Copy link

What do you mean that you loop intil the parent is visible, by the parent you mean the iframe? if that how do you check if the iframe is visible.

Thanks for the help

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

4 participants