Skip to main content
All docs
V24.2

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

DxSparkline.LineWidth Property

Specifies the line width. Does not apply to Bar and WinLoss series types.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

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

#Property Value

Type Default Description
Int32 2

The line width in pixels.

#Remarks

The following code snippet customizes the appearance of a spline area series:

line-width-and-color

<DxSparkline Data="@DataSource"
             Type="SparklineType.SplineArea"
             ArgumentFieldName="Month"
             ValueFieldName="VisitorCount"
             LineWidth="5"
             LineColor="Purple"
             Height="10%"
             Width="200px" />

@code {
    IEnumerable<SparklineDataPoint> DataSource = Enumerable.Empty<SparklineDataPoint>();
    protected override void OnInitialized() {
        DataSource = GenerateData();
    }
}
See Also