Format bar to 0.00

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Rodrigo Luis Nolli Bross

Format bar to 0.00

Post by Rodrigo Luis Nolli Bross » Tue Oct 15, 2002 2:08 pm

Hi, i need help for format my Label,

i use this method in CategoryPlot class


plot.setLabelFormatString("#,##0.##");

but the Documentation say that method need the Listener have been changed, any body can help me,

this method do not work, please send to me a exemple !?

Regards
[]

Brossi

Dave Gilbert

Re: Format bar to 0.00

Post by Dave Gilbert » Thu Oct 17, 2002 5:37 pm

It is working for me.

Regards,

DG.

Dave Gilbert

Re: Format bar to 0.00

Post by Dave Gilbert » Thu Oct 17, 2002 5:39 pm

One other thought...change the "##" on the end of your format string to "00" if you want to make sure there are two decimal places.

Regards,

DG

Locked