What are changes I need to make this work with version 0.9.18
Code: Select all
private void setChartProperties(JFreeChart chart){
PiePlot plot = (PiePlot) chart.getPlot();
plot.setSectionLabelType(PiePlot.NAME_AND_VALUE_LABELS);
plot.setSectionLabelFont(fnt);
plot.setValueFormat(new java.text.DecimalFormat(valueFormatString));
plot.setItemLabelGenerator(new StandardPieItemLabelGenerator(new java.text.DecimalFormat(valueFormatString)));
plot.setPercentFormat(new java.text.DecimalFormat(percentFormatString));
PieToolTipGenerator ttg = new StandardPieToolTipGenerator(nf);
plot.setToolTipGenerator(ttg);
}
