Tried height: '100%', Is there any way to make the chart height-responsive?
If you do give height: 100%, the chart gets the parent element's height and sets the fixed height - which doesn't change when width changes.
So, setting height: 100% doesn't actually makes it responsive but makes the chart fill the available height which is set by parent div. It's more of a CSS configuration.
To make it responsive, only width: 100% should be set and height should be left out.
Most helpful comment
If you do give
height: 100%, the chart gets the parent element's height and sets the fixed height - which doesn't change when width changes.So, setting
height: 100%doesn't actually makes it responsive but makes the chart fill the available height which is set by parent div. It's more of a CSS configuration.To make it responsive, only
width: 100%should be set and height should be left out.