Two things I cannot figure out

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
DrDanger
Posts: 1
Joined: Fri May 07, 2010 12:08 pm
antibot: No, of course not.

Two things I cannot figure out

Post by DrDanger » Fri May 07, 2010 12:20 pm

Hi.
First thanks for JFreeChart. I've been using it for years now and its just great!

I have two little problems.
The first is a chart displaying the system load. The load can be 0.0 -> infinite. I want my chart to display in the legend at least 0.0 to 1.0. The autorange is a nice feature, but sometimes my chart looks like on the screenshot and its not really helpfull.

My second problem as you can see is the free memory. The chart works nice, until the amount of memory doesn't change anymore. I double checked the values I give to the chart and I never give a value like 898.0000000000. Somehow the legend displays 898 as 898.0000000000. How can I limit the legend to integer values?

Image

Locked