I’m having difficulty figuring out how to set the tick unit size for the Y-axis of a chart (or X-axis).
I am able to obtain the tick unit size, but I can’t figure out how to set it.
I found the attribute:
which takes 1 or 3 arguments. I assume 1 argument would be the tick size, and 3 arguments would be the lower bound, upper bound and tick size.
However, when I try something like:
I get an error stating that the argument
“can’t be coerced to org.jfree.chart.axis.NumberTickUnit”
So how do I provide an argument that the attribute will take?