See Can't seem to change default Height on Graph
If you want it to fit the window, you might try 'height': '80vh'
instead of %
. Note that %
is always in reference to the parent container, which may or may not have a height defined for it.
I’d also recommend adjusting this / playing around with this with your browser’s Development Tools.