I found plotly about a week ago and have been using it in a little node.js project, and it has been working perfectly fine, but yesterday, when I use plotly.plot to upload a graph, the usual message in console does not display and instead just says “undefined”. I tried changing my API key, and that hasn’t helped. I even used the sample code:
var plotly = require("plotly")("energy_sync", "key");
var trace1 = {
x: [1, 2, 3, 4],
y: [10, 15, 13, 17],
type: "scatter"
};
var trace2 = {
x: [1, 2, 3, 4],
y: [16, 5, 11, 9],
type: "scatter"
};
var data = [trace1, trace2];
var graphOptions = {filename: "basic-line", fileopt: "overwrite"};
plotly.plot(data, graphOptions, function (err, msg) {
console.log(msg);
});
the output is still “undefined”