score:2

chart.js by default doesn't show values on top of data points. the issue must be related to chartjs-plugin-datalabels or some other script library you imported on your html page.

<script src="https://cdn.jsdelivr.net/npm/chartjs-plugin-datalabels@0.7.0"></script>

simply remove that and you won't see the the values on top of your data points anymore.

update

from the chartjs-plugin-datalabels documentation

this plugin registers itself globally, meaning that once imported, all charts will display labels. in case you want it enabled only for a few charts, you first need to unregister it globally:

chart.plugins.unregister(chartdatalabels);

then, you can enabled the plugin only for specific charts:

var chart = new chart(ctx, {
    plugins: [chartdatalabels],
    options: {
        // ...
    }
})

Related Query

More Query from same tag