want to change color in piechart
want to change color in piechart
hi
I am using 3dpiechart in my application, i want to change colors in that as per my requirement ,Is it possible to do that , please say how to do that .
bye
Ram
I am using 3dpiechart in my application, i want to change colors in that as per my requirement ,Is it possible to do that , please say how to do that .
bye
Ram
want to change color
Thanks for your suggestion ,
but am using this method
" ChartFactory.createPieChart3D " only and am passing five arguments which are title,dataset and three bollean values , can you suggest me that what i have to do to change the color , can i call some other methods or can i change the jar files . please help me
bye
Ram
but am using this method
" ChartFactory.createPieChart3D " only and am passing five arguments which are title,dataset and three bollean values , can you suggest me that what i have to do to change the color , can i call some other methods or can i change the jar files . please help me
bye
Ram
Build your own label format using StandardPieItemLabelGenerator and forward it to the PiePlot:
Code: Select all
PiePlot plot = (PiePlot) chart.getPlot();
PieSectionLabelGenerator gen = new StandardPieItemLabelGenerator("{0}={2}%");
plot.setLabelGenerator(gen);
Pierre-Marie