piechart diplay percentage

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
madhuri_ls
Posts: 10
Joined: Thu Jun 24, 2004 7:15 am

piechart diplay percentage

Post by madhuri_ls » Thu Jun 24, 2004 7:18 am

hi

i am using StandardPieItemLabelGenerator.

my code :-

StandardPieItemLabelGenerator g1 = new StandardPieItemLabelGenerator("{0}: ({1}, {2})", NumberFormat.getNumberInstance(), NumberFormat.getPercentInstance());
plot.setToolTipGenerator(g1);

what i have to add to display % values.

Thanks

RCDran
Posts: 29
Joined: Wed Feb 25, 2004 4:18 am
Location: Japan

Post by RCDran » Thu Jun 24, 2004 9:23 am

Have you done a

Code: Select all

plot.setLabelGenerator(g1)
?
--
RCDran

madhuri_ls
Posts: 10
Joined: Thu Jun 24, 2004 7:15 am

Post by madhuri_ls » Thu Jun 24, 2004 10:09 am

thanx

Locked