plotly.js icon indicating copy to clipboard operation
plotly.js copied to clipboard

Plotly IE9 error

Open fixxxr opened this issue 10 years ago • 9 comments

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

fixxxr avatar Mar 04 '16 08:03 fixxxr

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

etpinard avatar Mar 04 '16 15:03 etpinard

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

fixxxr avatar Mar 07 '16 09:03 fixxxr

Could you provide the HTML file you're using?

etpinard avatar Mar 07 '16 13:03 etpinard

please find attached the html that I am using

thanks in advance

index.zip

fixxxr avatar Mar 07 '16 13:03 fixxxr

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.

etpinard avatar Mar 07 '16 14:03 etpinard

I've tried that too but nothing changed.

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

fixxxr avatar Mar 07 '16 14:03 fixxxr

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

and confirm whether the graph is showing or not?

etpinard avatar Mar 07 '16 20:03 etpinard

@etpinard yes I can see the graph.

fixxxr avatar Mar 08 '16 07:03 fixxxr

@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.

fixxxr avatar Mar 08 '16 08:03 fixxxr