How set text above bar on Bar Chart ? #9116
Replies: 6 comments
-
How about https://chartjs-plugin-datalabels.netlify.app/ ? Btw, the removed |
Beta Was this translation helpful? Give feedback.
-
@kurkle thank you very much) |
Beta Was this translation helpful? Give feedback.
-
I have similar issue - I have some old legacy code which is failing after trying to migrate to v3 - and migration notes don't mention getDatasetMeta()... Plugin mentioned by @kurkle isn't compatible with v3 Reading Migration guide it looks like 'Chart.Controller' was removed - so what can I use now to get the same meta info?
|
Beta Was this translation helpful? Give feedback.
-
@jimpriest I don't recall how many years ago this has changed, but |
Beta Was this translation helpful? Give feedback.
-
@kurkle Thanks! I'll try again today to covert over to v3 and see how it goes. |
Beta Was this translation helpful? Give feedback.
-
@kurkle Got it working with your help and doing some RTFM. Unfortunately we're still supporting IE11 so will have to wait to upgrade :\ |
Beta Was this translation helpful? Give feedback.
-
Hello, I'm trying to implement text value above bars in Bar Chart, there is a lot of solutions for 2x version but I'm little bit confusing now about implementing such a feature in 3x version
After reading the documentation and migration guide I found such a description
"Removed from Dataset Controllers
* BarController.getDatasetMeta().bar
"
I found such implementation based on 2x version https://stackoverflow.com/questions/31631354/how-to-display-data-values-on-chart-js/37550150
But have no idea how to implement feature ( have on access to bar instance )it after migration to 3x:(
Help please )
Beta Was this translation helpful? Give feedback.
All reactions