Closed
Description
Hi, how can I set the width of the svg chart according to viewport width? I tried using width: '80vw'
in layout, but plotly doesn't seem to parse the vw
units. Appreciate any help!
const layout = {
hovermode: 'closest',
autosize: true,
// width: 1000,
// height: 600,
margin: {
l: 50,
r: 20,
b: 50,
t: 50,
pad: 10
},
yaxis: {
rangemode: 'tozero'
}
}