Skip to main content
All docs
V24.2

DxBarGauge.BaseValue Property

Specifies the bar gauge’s base value.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

Declaration

[Parameter]
public double? BaseValue { get; set; }

Property Value

Type Description
Nullable<Double>

The bar gauge’s base value.

Remarks

DxBarGauge renders bars from the beginning of the gauge’s scale. You can use a specific scale value as the base value. To shift the bar origin, specify the BaseValue property.

Example

The following code snippet sets the bar gauge’s base value to 0 to display negative and positive values on either side of the arc:

Bar Gauge - Base Value

<DxBarGauge Width="100%"
            Height="500px"
            StartValue="-5"
            EndValue="5"
            BaseValue="0"
            Values="@Values">
    @* ... *@
</DxBarGauge>

@code {
    double[] Values = new double[] { -2.13, 1.48, -3.09, 4.52, 4.9, 3.9 };
    // ...
}

Run Demo

See Also