-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Closed
Labels
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'
}
}
yarox, vkehayas, jalik, ATMarcks, pata-eth and 8 more