Friday, 22 May 2020

3 Auto-Resizing Graphs in JSFiddle

Refer to:

https://jsfiddle.net/kkwoo/m5jL8yhz/41/

Techniques used:
-  "height: 30vh;" in the CSS
-  "Plotly.Plots.resize(document.getElementById("output02a"));" on graphs requiring automatic resizing

Sources:
- https://stackoverflow.com/questions/1575141/how-to-make-a-div-100-height-of-the-browser-window
- https://bl.ocks.org/etpinard/edc678711ca231a8a4a5