pieplot compatibility with version 0.9.18

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
nilesh
Posts: 20
Joined: Wed May 21, 2003 10:56 am
Contact:

pieplot compatibility with version 0.9.18

Post by nilesh » Tue Apr 20, 2004 1:06 pm

I have got following method based on version 0.9.16 which seems like non jfreechart method now.
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); 
}
Thanks
:(

Locked