RangeAxis and negative values

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
develop
Posts: 296
Joined: Wed Mar 23, 2005 10:01 pm

RangeAxis and negative values

Post by develop » Thu Aug 28, 2008 8:16 pm

I have all negative Values on rangeAxis.

but negative sign is too small and very hard to read, so users are getting confused,

is there a way to format RangeAxis so that negative sign becomes more visible ?

Thanks

david.gilbert
JFreeChart Project Leader
Posts: 11734
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Post by david.gilbert » Fri Aug 29, 2008 7:36 am

It is a bit of work, but if you create your own TickUnits collection, then you can control the NumberFormat used for each TickUnit - and if you use DecimalFormat, you can call the setNegativePrefix() method to control the character/string used for the negative sign.
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

develop
Posts: 296
Joined: Wed Mar 23, 2005 10:01 pm

Post by develop » Fri Aug 29, 2008 12:59 pm

i think i will try to use that decimalFormat.setNegativePrefix and suffix.

Thanks a lot for reply.

Locked