Logarithimic axis

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Sudha Sundaram

Logarithimic axis

Post by Sudha Sundaram » Sat Mar 17, 2001 6:02 pm

Hi,

I would like to be able to display values on a logarithimic axis., since I have a wide range of values. Could you please give me hints as to how to go about doing this?

thanks
Sudha

David Gilbert

RE: Logarithimic axis

Post by David Gilbert » Sun Mar 18, 2001 11:53 am

You need to write a subclass of NumberAxis and pay particular attention to the implementation of the translatedValue(...) method. The subclasses of Plot should not need to be modified at all (unless I've messed something up), since they just draw symbols at the coordinates that the axis gives them. After that, the work is all in getting the labels you want, automatic tick sizes etc.

I have this registered on SourceForge as a feature request (id = 406671). It's not something I have time to develop right now, hopefully later...if you get something working, I'd love to add the code to the library.

Regards,

DG.

Locked