Search results

Dimensions in Blazor Circular Gauge component

28 Jul 2021 / 1 minute to read

Size for Circular Gauge

You can set size for the Circular Gauge directly using the Width and Height properties.

In pixel

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

Copied to clipboard
@using Syncfusion.Blazor.CircularGauge

<SfCircularGauge Width= "200px" Height= "200px"></SfCircularGauge>

Circular Gauge size in pixel

In percentage

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

Copied to clipboard
@using Syncfusion.Blazor.CircularGauge

<div style="height:450px; width:450px">
    <SfCircularGauge Width="50%" Height="50%"></SfCircularGauge>

Circular Gauge size in percentage

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