Even though a height / width is specified I believe the component is using viewport information to try and render? This means if it's in a hidden div, it won't render anything. When the div is then made visible, the SVG element takes up the space but doesn't re-render.