Chartjs-Remove data values and x,y axis from line chart – chartjs react

0👍

hidden is not a valid option for the Point Style.

You should use the boolean false to disable them:

const data = {
    labels: ['January', 'February', 'March', 'April', 'May'],
    datasets: [
        {
            label: '',
            data: [65, 59, 80, 81, 56],
            borderColor: 'rgba(75, 192, 192, 1)',
            borderWidth: 2,
            fill: false,
            pointStyle: false // Hide data points on the chart
        },
    ],
};

0👍

I found this and it’s working for me

plugins: {
      datalabels: {
        display: false,
    },

Leave a comment