java - Change the color of jfreechart piechart -
I want to change the color of the "piece" of pie in my jfreechart PieChart3D, this is the code which picart:
& 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 quote."%
Any help is highly appreciated.
The color section for each is usually populated by the drawing's plain player of the plot. You can override the default, however by calling
PiePlot.setSectionPaint (Comparative Key, Paint Paint);
With it, however, you will need to set up each section manually. If you just want a different color color, then it seems that you can apply drawing sppler.
Comments
Post a Comment