How can I force the y-axis to integer instead of float

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

How can I force the y-axis to integer instead of float

Post by Carrie » Sun Feb 23, 2003 3:49 pm

I am using BasicTimeSeries Class to store data and use createVerticalXYBarChart to create the chart.
Since my data in y-axis is "No. of people", so which must be integer.
and now I found that sometime the value show in y-axis is 12.0, 12.5, 13.0, 13.5......
Can I change the value show in y-axis to integer(so no more x.5 (e.g 12.5) non integer value is display)

Many Thanks
Carrie

Locked