Bar chart help - Percentage

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
leo
Posts: 8
Joined: Thu Jul 21, 2005 1:54 pm

Bar chart help - Percentage

Post by leo » Mon Jul 25, 2005 3:39 pm

Hi

For the X and Y axis I want to show the percentage sign with the actual numbers shown. Can anybody tell me how to do that. Specially in the case of Y axis how can I display percentage signs.

Thanks in Advance.

Sarika
Posts: 17
Joined: Sat Apr 02, 2005 6:18 am

Post by Sarika » Tue Jul 26, 2005 8:55 am

which chart are u using? means XY or simple

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 » Tue Jul 26, 2005 9:05 am

The labels on the axes are formatted using Java's NumberFormat and DateFormat classes, so it is relatively straightforward to do. There are different approaches, depending on what you need, but the easiest is the setNumberFormatOverride() method in the NumberAxis class.
David Gilbert
JFreeChart Project Leader

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

Locked