I ran into a problem that I couldn't find a solution to on the internet.
I have a bar_chart and in it I only want integers on the X axis. I've already tried discrete: true, variations in precision, variations in rounding, but there are always fractions.
This is my target:
Isn't that a problem with the bar_chart option to discrete?
Here is my chart (simplified)
FirstSearch existing issues to see if it’s been reported and make sure you’re on the latest version:
Hello,
I ran into a problem that I couldn't find a solution to on the internet.
I have a bar_chart and in it I only want integers on the X axis. I've already tried
discrete: true
, variations in precision, variations in rounding, but there are always fractions.This is my target:
Isn't that a problem with the
bar_chart
option to discrete?Here is my chart (simplified)
First
Search existing issues to see if it’s been reported and make sure you’re on the latest version:
Similar problem on stackoverflow: https://stackoverflow.com/questions/47717943/rails-gem-chartkick-remove-axis-values-from-bar-graph
HTML generated by Chartkick
Ruby code: