Plot sizing problems


I was able to get plotly to correctly size the graph by setting the height of the parent divs (div.js-plotly-plot and div.plot-container) that plotly wraps div.svg-container with.


Hi Danvallentyne,
Can you please post your code.


I set the height of the containers via CSS.

.plot-container {
          height: 44vh


Why is it so complicate to resize a canvas? I mean, it should have a simple way/parameter to do that. I am totally beginner on using it and I have no idea how to make my element fit the space that I reserved for it…is quite frustrating.