title: Change the color of jfreechart piechart
body: <p>I want to change the color of the "pieces" of pie in my jfreechart PieChart3D, this is the code that renders the piechart:</p>
  
  <pre><code>&lt;% response.setContentType("image/png"); %&gt;&lt;%@page import="org.jfree.data.general.*"%&gt;&lt;%@page import="org.jfree.chart.*"%&gt;&lt;%@page import="org.jfree.chart.plot.*"%&gt;&lt;%@page import="java.awt.Color" %&gt;&lt;%
  
          DefaultPieDataset ds = (DefaultPieDataset)session.getAttribute("usagePieOutputDataset");
  
    JFreeChart chart = ChartFactory.createPieChart3D
    (
     null,  // Title
     ds,  // Dataset
     false,  // Show legend
     false,  // Use tooltips
     false  // Configure chart to generate URLs?
    );
  
       chart.setBackgroundPaint(Color.WHITE);
       chart.setBorderVisible(false);
  
    PiePlot3D plot = ( PiePlot3D )chart.getPlot();
    plot.setDepthFactor(0.0);
    plot.setLabelGenerator(null); //null means no labels
  
    plot.setLabelOutlinePaint(Color.LIGHT_GRAY);
    plot.setLabelFont(new java.awt.Font("Arial",  java.awt.Font.BOLD, 10));
  
  
    ChartUtilities.writeChartAsPNG(response.getOutputStream(), chart, 150, 144);
  %&gt;
  </code></pre>
  
  <p>Any help is highly appreciated.</p>