Home Forums Chart Support Hide axis label Reply To: Hide axis label

#19822

@9mthsnafter,

You can use labelFormatter to hide axis-labels. You can use tickLength and lineThickness to hide tick and axis-lines respectively. Below is the code-snippet.

axisX:{
    gridThickness: 0,
    tickLength: 0,
    lineThickness: 0,
    labelFormatter: function(){
      return " ";
    }
  },
  axisY:{
    gridThickness: 0,
    tickLength: 0,
    lineThickness: 0,
    labelFormatter: function(){
      return " ";
    }
  },

Please take a look at this JSFiddle for complete code.
chart with hidden axis and gridlines - sparkline chart


Vishwas R
Team CanvasJS