chartjs-plugin-labels
chartjs-plugin-labels copied to clipboard
all data bar charts become 100%
I have set the rendering label to be 'percentage', but all data becomes 100%. When I set the rendering label to 'value', everything runs normally
I have this issue as well
I'm having the same issue. Did you find any solution?
The helpful folks at StackOverflow assisted me with my issue - hopefully this gets you towards a solution: https://stackoverflow.com/questions/54916474/chart-js-how-to-show-value-of-label-as-percent-of-x-and-y-values-currently-a
I'm facing the same issue too
Set the fontSize attribute to zero worked for me
Where are you setting the fontSize?
I had the same issue, for anyone facing it, here is what i did to resolve it. Simply add a configuration for the labels plugin inside your chart options object.
let chartOptions = { ... plugins: { labels: { render: 'value' } } };
Here i'm basicaly telling the plugin to use the bar value as its label. See the docs for other options available if you want more customization.
Hope it helps somebody.
actually it shows 100 for every bar's