Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Plotly IE9 error #315

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

Closed
fixxxr opened this issue Mar 4, 2016 · 9 comments
Closed

Plotly IE9 error #315

fixxxr opened this issue Mar 4, 2016 · 9 comments

Comments

@fixxxr
Copy link

fixxxr commented Mar 4, 2016

Hi there,

I need to run a heatmap chart on a machine using IE9 so I used the tag to obtain IE9 compatibility
<script>if(typeof window.Int16Array !== 'function')document.write("<scri"+"pt src=typedarray.js'></scr"+"ipt>");</script>
but I get the following error in run-time:

plotly_ie9

What I am doing wrong?
Thanks

@etpinard
Copy link
Contributor

etpinard commented Mar 4, 2016

I haven't tried. But this issue may be solved by adding charset="UTF-8" to your typedarray.js <script> tag.

@fixxxr
Copy link
Author

fixxxr commented Mar 7, 2016

Hello there,

thanks for your response. I added charset="UTF-8 to my script tag and the error now is the following:
plotly

now seems that typedarray.js is free of errors but Plotly.js is not loaded correctly.

Any thoughts?

Thanks in advance

@etpinard
Copy link
Contributor

etpinard commented Mar 7, 2016

Could you provide the HTML file you're using?

@fixxxr
Copy link
Author

fixxxr commented Mar 7, 2016

please find attached the html that I am using

thanks in advance

index.zip

@etpinard
Copy link
Contributor

etpinard commented Mar 7, 2016

Looks like your importing the unminified version of plotly.js, You should then import with:

<script type="text/javascript" src="plotly.js" charset="utf-8"></script>

More info here.

@fixxxr
Copy link
Author

fixxxr commented Mar 7, 2016

I've tried that too but nothing changed.

I tried importing the minified of both plotly and typedarrays but nothing changed.

@etpinard
Copy link
Contributor

etpinard commented Mar 7, 2016

@fixxxr can you open https://jsfiddle.net/plotlygraphs/gqdme3r2/4/

and confirm whether the graph is showing or not?

@fixxxr
Copy link
Author

fixxxr commented Mar 8, 2016

@etpinard yes I can see the graph.

@fixxxr
Copy link
Author

fixxxr commented Mar 8, 2016

@etpinard I just tested your fiddle on a machine running IE9 and everything is OK. Apparently it was just the syntax...

Thank you very much for your effort.

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

2 participants