0👍
So I tried your code with some sample data, I am getting the proper result, I am using the latest Chart.js
(Version 2.7.0) and it works fine when I set barPercentage
and the categoryPercentage
to 1, If you still face this issue,
My major point in this answer is!
The values
barPercentage
and thecategoryPercentage
can be
increased above1
so you can give1.05
to resolve this problem.
Here is a JSFiddle with some sample data I mocked up to show solution.
JSFiddle Demo
Please feel free to try this solution, if the above suggestions don’t work, please replicate the problem in the JSFiddle I provided and show me the issue again!
Source:stackexchange.com