chartjs-plugin-labels
chartjs-plugin-labels copied to clipboard
horizontalBar not working
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 ?
Me too. Same code works perfectly fine with regular bar chart.
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 you code didn't work for me. All of the values disappear for bar, horizontal bar and doughnut.
Are there any errors? I copied the code out of a working project. It should look like this
No errors. Can you create a codepen?
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.