Open
Description
Hello,
I cannot get the Plotly.js automargin
feature to work in React for axis ticks and labels.
Here is an example using official example:
// ...
var data = [
{
x: ['Apples', 'Oranges', 'Watermelon', 'Pears'],
y: [3, 2, 1, 4],
type: 'bar'
}
];
var layout = {
autosize: false,
width: 500,
height: 500,
yaxis: {
title: 'Y-axis Title',
ticktext: ['long label','Very long label','3','label'],
tickvals: [1, 2, 3, 4],
tickmode: 'array',
automargin: true,
titlefont: { size:20 },
},
};
return (
<div className="card-page">
<Plot data={data} layout={layout}></Plot>
</div>
Am I missing a setting?
Metadata
Metadata
Assignees
Labels
No labels