react-chartjs-2 icon indicating copy to clipboard operation
react-chartjs-2 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

🦄

  • [ ] Would you like to work on a fix?

Current and expected behavior

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

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

Reproduction

datalabels: { color: "white", align: "end", anchor: "start", offset: 0, formatter: (val, ctx) => { return (ctx.chart.data.labels[ctx.dataIndex]); }, font: { size: "10" }, }

chart.js version

v3.7.0

react-chartjs-2 version

v4.0.0

Possible solution

No response

Rushikeshkalhapure avatar Dec 27 '21 08:12 Rushikeshkalhapure

@Rushikeshkalhapure Hi. react-chartjs-2 is just the wrapper around Chart.js, so if you are experiencing an issue with charts rendering, please create a related issue in Chart.js repository.

dangreen avatar Dec 27 '21 08:12 dangreen

ok Thanks @dangreen

Rushikeshkalhapure avatar Dec 27 '21 09:12 Rushikeshkalhapure