react-chartjs-2 icon indicating copy to clipboard operation
react-chartjs-2 copied to clipboard

Not able to show labels on bar chart in reactjs

Open Rushikeshkalhapure opened this issue 4 years ago • 3 comments

🦄

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

Current and expected behavior

current : not able to show labels on bar chart

expected : label should be appear on bar chart

Reproduction

plugins: { legend: { display: false, }, datalabels: { display: true, color: 'white', opacity:1, }, tooltip:{ enabled:false } },

chart.js version

3.7.0

react-chartjs-2 version

4.0.0

Possible solution

No response

Rushikeshkalhapure avatar Dec 25 '21 10:12 Rushikeshkalhapure

@Rushikeshkalhapure Hi. Please provide issue reproduction. You can fork this codesandbox to reproduce.

dangreen avatar Dec 27 '21 08:12 dangreen

@dangreen Thanks for the response. Issue is resolved now

Rushikeshkalhapure avatar Dec 27 '21 08:12 Rushikeshkalhapure

@Rushikeshkalhapure , how did you resolved this? can you share any reference! I need to display labels with the data count on chart! Thanks in advance!

RudrikaJnext avatar Mar 11 '22 12:03 RudrikaJnext