X and Y values

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

X and Y values

Post by Elio » Wed Aug 07, 2002 6:26 pm

Hi!

How can i change the visualization of the X's and Y's values to Integer in an XYChart?

Thanks!!

David Gilbert

Re: X and Y values

Post by David Gilbert » Thu Aug 08, 2002 6:40 am

Hi Elio,

Do you mean on the axis labels? One thing you can do is replace the set of standard tick units using the setStandardTickUnits(...) method in the NumberAxis class. And the TickUnits class contains a createIntegerTickUnits() method that returns a ready-made collection for you, if you don't feel like creating your own.

Regards,

DG.

Locked