Back to Devexpress

DxBarGauge.BarSpacing Property

blazor-devexpress-dot-blazor-dot-dxbargauge-0c800992.md

latest1.3 KB
Original Source

DxBarGauge.BarSpacing Property

Specifies the distance between bars.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
[DefaultValue(4)]
[Parameter]
public double BarSpacing { get; set; }

Property Value

TypeDefaultDescription
Double4

The distance between bars in pixels.

|

Remarks

Use the BarSpacing property to specify the distance between bars. The higher the property value, the narrower every bar is.

Example

The following code snippet removes gaps between bars:

razor
<DxBarGauge Width="100%"
            Height="500px"
            StartValue="0"
            EndValue="100"
            BarSpacing="0"
            Values="@Values">
    @* ... *@
</DxBarGauge>

@code {
    double[] Values = new double[] { 47.27, 65.32, 84.59, 81.86, 99 };
    // ...
}

See Also

DxBarGauge Class

DxBarGauge Members

DevExpress.Blazor Namespace