question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

IE9 JS Plotly.redraw and Plotly.addTraces both throws Invalid Argument

See original GitHub issue

I used the recommended way to load plotly for IE9 with the typedarray

<script>if(typeof window.Int16Array !== 'function')document.write("<scri"+"pt src='extras/typedarray.min.js'></scr"+"ipt>");</script>

<script type="text/javascript" src="plotly.min.js"></script>

I am trying to do a simple “bar” chart with three traces. However, both addTraces (adding one trace at a time) and redraw (array of traces) would throw “Invalid Argument” error in IE9 and no bars on graph

IE10+ works Chrome works

Is there a workaround for this in IE9? It is a little urgent

thanks for any help

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:17 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
WardLootenscommented, Apr 15, 2016

I stumbled upon the same error. Of course I’m not sure the cause is the same, but in my case the value of the value parameter passed to d3_style_setProperty.call was NaNpx (and name was #stroke-width). I could fix this by explictly adding marker.line.width option to my traces. e.g.

marker: {
    color : 'green',
    line: {width: 0} // should be there, to make it work in IE9 :-)
}, 

Hope this can be of any help…

0reactions
alexcjohnsoncommented, Feb 1, 2017

Pretty sure #1332 fixes this - but please reopen if this or related problems persist.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Problem with plotly.js redraw
I had a project that need to plot 2 sine wave graphs in a same div. The value of two graphs can be...
Read more >
plotly.js-gl2d-dist-min | Yarn - Package Manager
Ready-to-use minified plotly.js gl2d distributed bundle. Contains trace modules heatmapgl , parcoords , pointcloud , scatter , scattergl and splom .
Read more >
api documentation for plotly.js (v1.26.1)
addTraces (gd, traces, newIndices); function plotly.js.plotly.animate (gd, ... doTicks(gd, 'redraw'); } // Now plot the data function drawData() { var ...
Read more >
plotly Changelog - PyUp.io
graph_objects` module. - `px.imshow` has a new `binary_string` boolean argument, which passes the image data as a b64 binary string when True.
Read more >
High performance way to update graph with new data in Plotly?
I have quickly thrown this together (well, it took a great deal of effort to find out how to do it; I've just...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found