title: JFreeChart: how to set gradient paint for series in spider chart
body: <p>I have a chart with this presentation:</p>
  <p><img src="https://i.stack.imgur.com/59AoJ.png" alt="Current chart" /></p>
  <p>But I require to do this:</p>
  <p><img src="https://i.stack.imgur.com/9TUZx.png" alt="Expected chart" /></p>
  <p>How do I set correctly the gradient paint for series?. Here is what I have:</p>
  <pre><code>public class SpiderWebChartDemo1 extends ApplicationFrame {
  
      public SpiderWebChartDemo1(String s) {
          super(s);
          JPanel jpanel = createDemoPanel();
          jpanel.setPreferredSize(new Dimension(500, 270));
          setContentPane(jpanel);
      }
  
      private static CategoryDataset createDataset() {
          String s = &quot;First&quot;;
          String s3 = &quot;Self leadership&quot;;
          String s4 = &quot;Organization leadership&quot;;
          String s5 = &quot;Team leadership&quot;;
          
          DefaultCategoryDataset defaultcategorydataset = new DefaultCategoryDataset();
          defaultcategorydataset.addValue(1.0D, s, s3);
          defaultcategorydataset.addValue(4D, s, s4);
          defaultcategorydataset.addValue(3D, s, s5);
          return defaultcategorydataset;
      }
  
      private static JFreeChart createChart(CategoryDataset categorydataset) {
          Color bckColor1 = Color.decode(&quot;#4282CE&quot;); //Light blue
          Color bckColor2 = Color.decode(&quot;#9BC1FF&quot;); //Dark blue
          Color axisColor = Color.decode(&quot;#DD0010&quot;); //Red
          
          SpiderWebPlot plot = new SpiderWebPlot(categorydataset);
          Paint p = new GradientPaint(0,0,bckColor1,0,0,bckColor2);
          
          plot.setSeriesPaint(p);
          plot.setAxisLinePaint(axisColor);
          
          JFreeChart chart = new JFreeChart(&quot;Spider Web Chart Demo 1&quot;
                  , TextTitle.DEFAULT_FONT, plot, false);
  
          LegendTitle legendtitle = new LegendTitle(plot);
          legendtitle.setPosition(RectangleEdge.BOTTOM);
          chart.addSubtitle(legendtitle);
          return chart;
      }
  
      public static JPanel createDemoPanel() {
          JFreeChart jfreechart = createChart(createDataset());
          return new ChartPanel(jfreechart);
      }
  
      public static void main(String args[]) {
          SpiderWebChartDemo1 spiderwebchartdemo1 = new SpiderWebChartDemo1(&quot;SpiderWebChartDemo1&quot;);
          spiderwebchartdemo1.pack();
          RefineryUtilities.centerFrameOnScreen(spiderwebchartdemo1);
          spiderwebchartdemo1.setVisible(true);
      }
  }
  </code></pre>
  <p>I've seen gradient paint in bar charts, but not for spider charts. All I'm getting is transparent series.</p>
  <p>Thanks.</p>