Hi
My RangeAxis is a percentage on my chart, but I would like to get the tick labels to display a percentage sign as a suffix.
Does anyone know how I can do this?
Regards
Simon
RangeAxis tick label suffix
Re: RangeAxis tick label suffix
If you want automatically adjusting tick sizes, you need to create your own TickUnits collection, so that you can specify your own DecimalFormat objects for each standard tick size (DecimalFormat can format percentages). If I find the time, I'll add a default collection to the TickUnits class for the next release.
Or, if you have a fixed tick size, just create a new NumberTickUnit (again supplying a DecimalFormat instance that formats percentages) and then use the setTickUnit method in the NumberAxis class.
Regards,
DG.
Or, if you have a fixed tick size, just create a new NumberTickUnit (again supplying a DecimalFormat instance that formats percentages) and then use the setTickUnit method in the NumberAxis class.
Regards,
DG.