chartjs-plugin-labels icon indicating copy to clipboard operation
chartjs-plugin-labels copied to clipboard

all data bar charts become 100%

Open Dewagung opened this issue 6 years ago • 8 comments

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 capture

Dewagung avatar Feb 15 '19 02:02 Dewagung

I have this issue as well

Joyrex avatar Feb 26 '19 22:02 Joyrex

I'm having the same issue. Did you find any solution?

mpalacios78 avatar Mar 18 '19 15:03 mpalacios78

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

Joyrex avatar Mar 18 '19 20:03 Joyrex

I'm facing the same issue too

an0nEmouse avatar Apr 24 '19 09:04 an0nEmouse

Set the fontSize attribute to zero worked for me

lopesfontana avatar Oct 28 '19 17:10 lopesfontana

Where are you setting the fontSize?

jrainesatiba avatar Nov 15 '19 04:11 jrainesatiba

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.

nzomedia avatar May 17 '20 13:05 nzomedia

image actually it shows 100 for every bar's

prafuliihglobal avatar Sep 20 '21 05:09 prafuliihglobal