Sparkline for WPF Overview > Features > Sparkline Types > Setting Sparkline Type |
The C1Sparkline class provides SparklineType property to set the chart type in XAML or code. The SparklineType property accepts the following values from the SparklineType enumeration:
To set the chart type for Sparkline in XAML, you need to set the SparklineType property to a specific chart type in XAML.
XAML |
Copy Code
|
---|---|
<c1:C1Sparkline x:Name="sparkline" Height="150" Width="250" SparklineType="Column" /> |
You can also set the chart type for Sparkline in code using the SparklineType property.
'Setting the Chart Type
sparkline.SparklineType = SparklineType.Column
//Setting the Chart Type
sparkline.SparklineType = SparklineType.Column;