How do you set the y axis so that the scale is whole numbers

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
simplename
Posts: 6
Joined: Mon Jan 07, 2008 2:08 am

How do you set the y axis so that the scale is whole numbers

Post by simplename » Wed Jan 09, 2008 2:21 am

I'm drawing histograms to show about information I have for some nodes in a graph. The y-axis shows the number of nodes that has the value of x, so it would make sense only if y is whole number. How do I change the axis settings so that it only displays whole numbers instead of decimal numbers as well?

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 » Wed Jan 09, 2008 12:25 pm

David Gilbert
JFreeChart Project Leader

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

simplename
Posts: 6
Joined: Mon Jan 07, 2008 2:08 am

Post by simplename » Thu Jan 10, 2008 12:26 am

thanks a lot for that =)

Locked