DxSparkline.LineWidth Property
Specifies the line width. Does not apply to Bar
and WinLoss
series types.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v24.1.dll
NuGet Package: DevExpress.Blazor
Declaration
[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:
<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