SparklineType Enum
Lists sparkline series types.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v24.1.dll
NuGet Package: DevExpress.Blazor
Declaration
public enum SparklineType
Members
Name | Description | Image |
---|---|---|
Line
|
A line series. |
|
Spline
|
A spline series. |
|
StepLine
|
A step line series. |
|
Area
|
An area series. |
|
SplineArea
|
A spline area series. |
|
StepArea
|
A step area series. |
|
Bar
|
A bar series. |
|
WinLoss
|
A win-loss 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