Sparkline for UWP | ComponentOne
Sparkline for UWP Task-Based Help / Changing C1Sparkline's Appearance
In This Topic
    Changing C1Sparkline's Appearance
    In This Topic

    The C1Sparkline control has specific appearance properties which you can use to customize your application. For a full explanation of the appearance properties, please see the C1Sparkline Appearance Properties topic.

    The C1Sparkline's Appearance properties can be set in XAML markup or in code.

    In Markup

    Insert the following markup into the <c1:C1Sparkline> tag to set some of the control's appearance properties:

    Markup
    Copy Code
    SeriesColor="#FF4BC128" ShowFirst="True" ShowHigh="True" AxisColor="#FF2859C1".
    

    In Code

    To set the C1Sparkline's appearance properties, your code should resemble the following:

    C#
    Copy Code
    sparkline.MarkersColor = Colors.DeepPink;
    sparkline.DisplayXAxis = true;
    
    See Also