chartjs-plugin-datalabels icon indicating copy to clipboard operation
chartjs-plugin-datalabels copied to clipboard

Give the choice to display datalabels on 1 or all charts

Open alexandreszymkiw opened this issue 3 years ago • 1 comments

Hello, I use this plugin with chartjs : is-it possible to developp this function : to have the possibly to display datalabels on 1 or all charts ? Because there are no options to display only one chart when we display 2 charts on the same chart. Thank you for your answer

alexandreszymkiw avatar Aug 23 '22 10:08 alexandreszymkiw

You can instead of registering the plugin globally by calling Chart.register(chartDatalabels) register it locally to the chart you want to display new Chart(ctx, {data, optsions, plugins: [chartDatalabels]}) or disable it in the config: new Chart(ctx, {data, options: {plugins: {datalabels: false}}})

LeeLenaleee avatar Sep 13 '22 12:09 LeeLenaleee