Open iamnathadian opened 9 years ago
I'm getting the same issue with x values set.
Examples: https://jsfiddle.net/jez500/r4xq1y93/1/
Is anyone aware of any workarounds?
I'm using a formula to calculate the bar.width.ratio. It's something like this:
1 / ( ( ( {number of x columns} - {number of x ticks} ) / {number of x ticks} ) + 0.6 )
For your example, it would look like this: https://jsfiddle.net/r4xq1y93/2/
Thanks heaps @iamnathadian, very helpful!
The bar width ratio does not calculate correctly when the number of ticks is different from the number of columns in a bar chart because of using the x tick values or x tick count options.
Here is an example: http://jsfiddle.net/L7od79g3/1/
The bar width ratio seems to be based on the distance between the ticks. I feel that it would be better if the bar width ratio was relative to the width between the columns instead.