In JFreeChart, I am using the setRenderAsPercentage(true) option for StackedBarRenderer .
Although the plot itself looks fine (all bars span the whole plot), the range axis labels are not showing percent values (i.e. 0 to 100) but probabilities (i.e. 0 to 1).
How can I achieve percentage values?
You need to set a
NumberFormatfor therangeAxislike this:Or you can do this if you already have a plot
You should then have an chart that looks like this: