ComponentOne Sparkline for WPF
Sparkline for WPF Overview / Features / Sparkline Types / Setting Sparkline Type
In This Topic
    Setting Sparkline Type
    In This Topic

    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:

    In XAML

    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" />
    

    In Code

    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;