Sparklines for WinForms | ComponentOne
Work with Sparkline Control / Axis
In This Topic
    Axis
    In This Topic

    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

    Hide X-axix in Sparkline

    //Shows the horizontal axis

    sparkline.DisplayXAxis = true;

    //Hides the horizontal axis

    sparkline.DisplayXAxis = false;