Back to Devexpress

ChartBuilder.BarGroupPadding(Double) Method

aspnetcore-devextreme-dot-aspnet-dot-mvc-dot-builders-dot-chartbuilder-dot-bargrouppadding-x28-system-dot-double-x29.md

latest1.4 KB
Original Source

ChartBuilder.BarGroupPadding(Double) Method

Controls the padding and consequently the width of a group of bars with the same argument using relative units. Ignored if the barGroupWidth property is set. Mirrors the client-side barGroupPadding option.

Namespace : DevExtreme.AspNet.Mvc.Builders

Assembly : DevExtreme.AspNet.Core.dll

Declaration

csharp
public ChartBuilder BarGroupPadding(
    double value
)

Parameters

NameTypeDescription
valueDouble

The option value.

|

Returns

TypeDescription
ChartBuilder

A reference to this instance after the method is called.

|

Remarks

Use the following notation to set the option’s value:

cshtml
@(Html.DevExtreme().Chart()
    .BarGroupPadding(10)
)

See Also

ChartBuilder Class

ChartBuilder Members

DevExtreme.AspNet.Mvc.Builders Namespace