Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

DxChartLineSeriesBase<T, TArgument, TValue>.Width Property

Specifies the line series width in pixels.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
[DefaultValue(2)]
[Parameter]
public int Width { get; set; }

#Property Value

Type Default Description
Int32 2

The series width.

#Remarks

Use the Width property to specify the line series thickness in pixels.

The following example sets the series width to 5 pixels:

Razor
<DxChart Data="@SalesData">
    <DxChartLineSeries Name="Total Sales" 
                       ArgumentField="@((SaleInfo s) => s.City)"
                       ValueField="@((SaleInfo s) => s.Amount)"
                       SummaryMethod="Enumerable.Sum"
                       Width="5">
    </DxChartLineSeries>
</DxChart>

Line Series Width

See Also