Skip to main content
ID

ChartBuilder.BarGroupWidth(Double) Method

Specifies a fixed width for groups of bars with the same argument, measured in pixels. Takes precedence over the barGroupPadding property. Mirrors the client-side barGroupWidth option.

Namespace: DevExtreme.AspNet.Mvc.Builders

Assembly: DevExtreme.AspNet.Core.dll

Declaration

public ChartBuilder BarGroupWidth(
    double value
)

Parameters

Name Type Description
value Double

The option value.

Returns

Type Description
ChartBuilder

A reference to this instance after the method is called.

Remarks

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

@(Html.DevExtreme().Chart()
    .BarGroupWidth(100)
)
See Also