-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Closed
Description
I tried using the latest plot.ly/javascript and came across this error.
I was unable to make a plot with a simple webpage.
I included <script src="https://cdn.plot.ly/plotly-latest.js"></script> which is using version v1.52.3.
plotly-latest.js:111859 Uncaught TypeError: Cannot read property 'key' of undefined
at HTMLCanvasElement.<anonymous> (plotly-latest.js:111859)
at bind (plotly-latest.js:25804)
at Array.d3_selectionPrototype.data (plotly-latest.js:25857)
at drawFramework (plotly-latest.js:111847)
at Object.lib.syncOrAsync (plotly-latest.js:106537)
at Object.plot (plotly-latest.js:112017)
at Object.newPlot (plotly-latest.js:112287)
The issue seems to be on line 11859
// draw framework first so that margin-pushing
// components can position themselves correctly
var drawFrameworkCalls = 0;
function drawFramework() {
....
}], function(d) { return d.key; });
the variable d is undefined when this line gets called. Should there be some error handling or is there some previous step missing?
Attached is an example html file that tries to make a plot and comes across this error.
testplotly.txt
Metadata
Metadata
Assignees
Labels
No labels