Skip to main content
All docs
V24.2

DxChartBarSeriesBase<T, TArgument, TValue>.CornerRadius Property

Specifies the corner radius for a bar series.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

Declaration

[Parameter]
public int CornerRadius { get; set; }

Property Value

Type Description
Int32

The corner radius in pixels.

Remarks

The following example adds rounded corners to a bar series:

<DxChart T="PopulationAgeStructureItem"
         Data="@ChartsData"
         Width="100%">
    <DxChartTitle Text="Population: Age Structure">
        <DxChartSubTitle Text="Data Estimate for 2020" />
    </DxChartTitle>
    <DxChartBarSeries Name="0-14 years"
                      T="PopulationAgeStructureItem"
                      TArgument="string"
                      TValue="int"
                      ArgumentField="pasi => pasi.Country"
                      ValueField="pasi => pasi.Population"
                      SummaryMethod="Enumerable.Sum"
                      Filter='pasi => pasi.AgeGroup == "0-14 years"'
                      CornerRadius="5" />
    <DxChartBarSeries Name="15-64 years"
                      T="PopulationAgeStructureItem"
                      TArgument="string"
                      TValue="int"
                      ArgumentField="pasi => pasi.Country"
                      ValueField="pasi => pasi.Population"
                      SummaryMethod="Enumerable.Sum"
                      Filter='pasi => pasi.AgeGroup == "15-64 years"' 
                      CornerRadius="10"/>
    <DxChartLegend Position="RelativePosition.Outside"
                   HorizontalAlignment="HorizontalAlignment.Center"
                   VerticalAlignment="VerticalEdge.Bottom" />
</DxChart>

@code {
    IEnumerable<PopulationAgeStructureItem> ChartsData;

    protected override async Task OnInitializedAsync() {
        ChartsData = await DataProvider.QueryData();
    }
}

DxChartBarSeries - CornerRadius

See Also