Chartjs-How to hide the tick marks of the axis in react-chartjs-2

1👍

Check if the below code works?

scales:{
yAxes:[{
  scaleLabel:{
    display: false
  },
  ticks: {
    display:false // it should work
  }
 }],
},

0👍

Try this Source

options: {
scales: {
yAxes: [{
ticks: {
display: false
}
}]
}
}

0👍

If you want to hide label, use following

scales:{
    yAxes:[{
       ticks:{
       display: false
      }
    }]
}

Same goes for xAxes

Leave a comment