Chartjs-React-chartjs-2 hiding axis label

0👍

This is because your config is not getting picked up, you putted your scale config in the options.scale namespace white it needs to be configured in the options.scales so you need to add an extra s at the end

0👍

This is how I manage to get rid of the labels, I think in your case instead of Y its gonna be y2

  y: {
      ticks: {
        display: false, //this will remove only the label
      },
    },

Leave a comment