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

horizontalBar not working

Open baroninn opened this issue 4 years ago • 6 comments

i beleve you have support for horizontalBar. But I dont see anything when using horizontalBar.

any special variables or hooks I need to add to the code ?

baroninn avatar Mar 26 '20 16:03 baroninn

Me too. Same code works perfectly fine with regular bar chart.

vbbalaji avatar Jun 24 '20 18:06 vbbalaji

Check this fork. It has support for both Horizontal and Vertical bar charts.

https://github.com/jcroucher/chartjs-plugin-labels/blob/master/src/chartjs-plugin-labels.js

jcroucher avatar Aug 03 '20 06:08 jcroucher

@jcroucher you code didn't work for me. All of the values disappear for bar, horizontal bar and doughnut.

leandropapasidero avatar Aug 03 '20 19:08 leandropapasidero

Are there any errors? I copied the code out of a working project. It should look like this

Screen Shot 2020-08-04 at 9 06 39 am Screen Shot 2020-08-04 at 9 07 44 am Screen Shot 2020-08-04 at 9 09 46 am

jcroucher avatar Aug 03 '20 23:08 jcroucher

No errors. Can you create a codepen?

leandropapasidero avatar Aug 04 '20 02:08 leandropapasidero

https://codepen.io/jcroucher/pen/WNwegMe

Note that for some reason including chartjs-plugin-labels as an external JS within CodePen doesn't work. Inline it works, my actual live project uses it as an import within Vue.

jcroucher avatar Aug 04 '20 04:08 jcroucher