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

#15356

Suyash Singh
Moderator

@mjawa,

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