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.
//Shows the horizontal axis sparkline.DisplayXAxis = true; |
//Hides the horizontal axis sparkline.DisplayXAxis = false; |