Chart.js icon indicating copy to clipboard operation
Chart.js copied to clipboard

Want to show datasetlabels at the middle and data values at the top

Open Rushikeshkalhapure opened this issue 4 years ago • 2 comments

current : not able to show both datasetLabel and datavalue at a time.

expected: both datasetlabel and values should be displayed on the bar chart

Rushikeshkalhapure avatar Dec 27 '21 09:12 Rushikeshkalhapure

You can write a custom plugin that's draws both of these values on the chart.

You can use the datalabels plugin as a base since it can draw the in both locations you want. Only downside it only draws it in one pc them

https://chartjs-plugin-datalabels.netlify.app/

LeeLenaleee avatar Dec 27 '21 10:12 LeeLenaleee

Closing as per my above commnet, this wont be implemented in the main lib and should live as an external plugin

LeeLenaleee avatar Jan 02 '22 00:01 LeeLenaleee