This repository was archived by the owner on Jun 4, 2024. It is now read-only.
This repository was archived by the owner on Jun 4, 2024. It is now read-only.
getImage: Error when add layout in opts #71
Open
Description
// Learn about API authentication here: https://plotly.com/nodejs/getting-started
// Find your api_key here: https://plotly.com/settings/api
require('plotly')(username, api_key);
var trace1 = {
x: ["giraffes", "orangutans", "monkeys"],
y: [20, 14, 23],
name: "SF Zoo",
type: "bar"
};
var trace2 = {
x: ["giraffes", "orangutans", "monkeys"],
y: [12, 18, 29],
name: "LA Zoo",
type: "bar"
};
var data = [trace1, trace2];
var layout = {barmode: "stack"};
var graphOptions = {layout: layout, filename: "stacked-bar", fileopt: "overwrite"};
plotly.getImage(data, graphOptions, function (err, msg) {
console.log(msg);
});
Metadata
Metadata
Assignees
Labels
No labels