NNUmberAxis format

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
bztom33
Posts: 35
Joined: Tue Jul 11, 2006 10:35 pm

NNUmberAxis format

Post by bztom33 » Mon Sep 22, 2008 5:47 pm

Hi,

Is there a way to format the RangeAxis value?

example,

I want to change the RangeAxis (y-axis) values from 0.0000000 to 0.00. This is a problem when the plotted values are 0.


Thanks,

tom

RichardWest
Posts: 844
Joined: Fri Oct 13, 2006 9:29 pm
Location: Sunnyvale, CA

Re: NNUmberAxis format

Post by RichardWest » Mon Sep 22, 2008 9:44 pm

bztom33 wrote:Is there a way to format the RangeAxis value?
NumberAxis has a method called setNumberFormatOverride. The argument is any NumberFormat object. Specifically, you would be interested in the DecimalFormat class.
Richard West
Design Engineer II
Advanced Micro Devices
Sunnyvale, CA

Locked