Sparkline for WPF Overview > Features > Axes |
By default, the Sparkline control renders without any axis. However, Sparkline supports an x-axis, which can either be displayed or kept hidden as per the user requirements. By default, the x-axis remains hidden in Sparkline.
To display x-axis, you can set the DisplayXAxis property to true. Here is how a Sparkline control with x-axis appears.
XAML |
Copy Code
|
---|---|
<c1:C1Sparkline x:Name="sparkline" Height="250" Width="250" DisplayXAxis="True" /> |
'Displaying x-axis sparkline.DisplayXAxis = True
//Displaying x-axis sparkline.DisplayXAxis = true;