Giving the units to the range axis.

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Narayan
Posts: 30
Joined: Wed Apr 11, 2007 11:20 am
Location: Bangalore

Giving the units to the range axis.

Post by Narayan » Thu Jun 21, 2007 4:33 pm

Hi All,

I have the values in range axis which might have 10 - 20 digits.
So Is there any way to show these values in terms of kilos or megas etc
Eg - 23, 25, 27 ( units in Kilos ) instead of 23000, 25000, 27000

Cheers,
Narayan

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 Jun 22, 2007 10:41 am

I don't know of an easy "built-int" way to do this, but you could write a custom NumberFormat subclass.
David Gilbert
JFreeChart Project Leader

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

Locked