Skip to main content
All docs
V24.2

SparklineType Enum

Lists sparkline series types.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

Declaration

public enum SparklineType

Members

Name Description Image
Line

A line series.

Sparkline - Line Series

Spline

A spline series.

Sparkline - Spline Series

StepLine

A step line series.

Sparkline - Step Line Series

Area

An area series.

Sparkline - Area Series

SplineArea

A spline area series.

Sparkline - Spline Area Series

StepArea

A step area series.

Sparkline - Step Area Series

Bar

A bar series.

Sparkline - Bar Series

WinLoss

A win-loss series.

Sparkline - WinLoss Series

Related API Members

The following properties accept/return SparklineType values:

Remarks

Use the Type property to define the sparkline type. The following code snippet renders a bar series:

<DxSparkline Data="@DataSource"
             Type="SparklineType.Bar"
             ArgumentFieldName="Month"
             ValueFieldName="VisitorCount"
             Height="50px"
             Width="200px" />

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

For more information, refer to the Series section in the DxSparkline class description.

See Also