Circular Gauge Dimensions

19 Dec 20221 minute to read

Size for Circular Gauge

You can also set size for the gauge directly through width and height properties.

In Pixel

You can set the size of the gauge in pixel as demonstrated below.

@using Syncfusion.EJ2;

<div id="container">
    <ejs-circulargauge id="circular" height="350px" width="650px"></ejs-circulargauge>
</div>

In Percentage

By setting value in percentage, gauge gets its dimension with respect to its container. For example, when the height is ‘50%’, gauge renders to half of the container height.

@using Syncfusion.EJ2;

<div id="container">
    <ejs-circulargauge id="circular" height="50%" width="80%"></ejs-circulargauge>
</div>

NOTE

When you do not specify the size, it takes 450px as the height and window size as its width.

NOTE

View Sample in GitHub.