Knowledge BaseMetric InsightsMetrics & Reports ChartsHow to set your JavaScript chart so it will adapt its size to the container size.

How to set your JavaScript chart so it will adapt its size to the container size.

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();

0 Comments

Add your comment

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.