In my JfreeChart
, the label formats are {0}, {1}, {2}
.
Here {0}
represents the pie section key, {1}
represents the section value and {2}
represents the percentage.
I am setting the label in piechart by using the following code
plot.setLabelGenerator(new StandardPieSectionLabelGenerator("{1}"));
Lets assume chart has 2 sections. the value({1})
of the 1st section is 200 and second section is 150. My requirement is like this one:
plot.setLabelGenerator(new StandardPieSectionLabelGenerator("{1}" * 3));
Can any one please tell how to modify this value?