I use JFreeChart to create pie charts. Values โโare displayed outside the pie chart sectors as labels. I want to display values โโin pie sectors. How can i achieve this. Please can someone help me?
JFreeChart
Use setSimpleLabels() as shown below; org.jfree.chart.demo.PieChartDemo1 is a good starting point.
setSimpleLabels()
org.jfree.chart.demo.PieChartDemo1
PiePlot plot = (PiePlot) chart.getPlot(); plot.setSimpleLabels(true);
If you use createPieChart3D to create a pie chart, the following URL will be helpful. http://www.java2s.com/Code/Java/Chart/JFreeChartPieChart3DDemo1.htmWhat I know shows the values โโinside - the default function of the chart. If you cannot do this, it seems that you have changed the default method.
createPieChart3D