Home forums Using CanvasJS Removing vertical lines and keeping x-axis and y-axis only

This topic contains 1 reply, has 2 voices, and was last updated by  Suyash Singh 2 years, 2 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #15352

    I hope everybody is doing well. I am customizing with the stacked bar graph and I need to get rid of the vertical lines inside the graph and I need only to add a vertical line at the bottom as an x-axis and the vertical line as the y-axis. Please help me out with this I gave up on it.
    Thank you



    You can remove the gridLines by setting gridThickness to zero. Also you can use stripLines for showing reference lines. Please have a look at this code snippet:

    axisY: {
        gridThickness: 0,
        stripLines: [
            value: 0,
            showOnTop: true,
            color: "gray",
            thickness: 2

    If this doesn’t suit your requirements, can you please provide us some pictorial representation so that we can understand your requirements and help you out.

    Suyash Singh
    Team CanvasJS

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.