Home Forums Chart Support 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

@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
      }
    ]
 },

Please take a look at this JSFiddle for complete code.

Remove gridlines in chart

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