Description
As shown in this example from the docs I'd like to add two legends for two subplots.
But the PlotData type does not include the legend attribute and therefore I get an error during my build.
I am using plotly.js-dist-min 3.4.0 and @types/plotly.js-dist-min 2.3.4.
const traces: Partial<Plotly.PlotData>[] = [
{
name: "Off",
type: "bar",
orientation: "h",
y: y,
x: x,
legend: "legend", // <-- Here's the error !
xaxis: "x",
yaxis: "y",
},
...
]
A similar problem exists in Layout where legend2, legend3 and so on are missing.
Description
As shown in this example from the docs I'd like to add two legends for two subplots.
But the PlotData type does not include the
legendattribute and therefore I get an error during my build.I am using
plotly.js-dist-min 3.4.0and@types/plotly.js-dist-min 2.3.4.A similar problem exists in Layout where
legend2,legend3and so on are missing.