# Axis

Sparkline for WinForms control supports Axis, users can either show or hide the axis line depending upon their requirments. See more demos, documentation, and samples here.

## Content



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.

|   ![Display X-axis in Sparkline](https://cdn.mescius.io/document-site-files/images/adac4adb-2280-4c58-a35f-c4af030999c6/images/sparkline-axis.png)   |   ![Hide X-axix in Sparkline](https://cdn.mescius.io/document-site-files/images/adac4adb-2280-4c58-a35f-c4af030999c6/images/sparklineqs.png)   |
| --- | --- |
|   //Shows the horizontal axis  sparkline.DisplayXAxis = true; |   //Hides the horizontal axis  sparkline.DisplayXAxis = false;   |