The Sparkline control supports an x-axis, which can either be displayed or kept hidden as per the user requirements. By default, the Sparkline control renders without any axis. However, at times, there may be a need to display the horizontal axis, to better visualize values greater than and less than zero. This is primarily helpful with line sparkline type to differentiate between the negative and the positive data points.
//Displays the horizontal axis sparkline.DisplayXAxis = true; |
//Displays the horizontal axis sparkline.DisplayXAxis = false; |