Plotly.newPlot(
'graph',
[
{
colorscale: 'YIOrRd',
hoverinfo: 'text',
reversescale: true,
type: 'heatmap',
z: [[1, 20, 30], [20, 1, 60], [30, 60, 1]]
}
],
{
showlegend: false,
xaxis: {
title: 'Year',
titlefont: {
size: 16
}
},
yaxis: {
anchor: 'free',
position: -100,
title: 'Unemployed',
titlefont: {
size: 16
}
},
margin: {
l: 200,
r: 50,
b: 50,
t: 50
}
},
{
displayModeBar: false,
staticPlot: true
}
);
https://jsfiddle.net/dzvx2838/
I have tried adjusting values:
anchor: 'free',
position: -100,
but it has no effect to the position of the yaxis title.
What I would like to achieve is to make the yaxis title stick to the left-most position as I increase the left-margin.
https://jsfiddle.net/dzvx2838/
I have tried adjusting values:
but it has no effect to the position of the yaxis title.
What I would like to achieve is to make the yaxis title stick to the left-most position as I increase the left-margin.