The Metric Insights viewer is not adaptive, meaning it does not allow chart sizes to be set dynamically.
However, if you are displaying a chart in your own web application, you can adapt the chart size to the container size by setting the following parameters:
cvWidth = $('body').width();
cvHeight = $('body').height();