- Common ways to obtain PiePlot
private void myMethod () {PiePlot p =
JFreeChart chart;(PiePlot) chart.getPlot()
PieDataset dataset;new PiePlot(dataset)
- Smart code suggestions by Codota
}
JFreeChart chart = ChartFactory.createPieChart3D("World Polulation by Countries ", dataset, true, true, true); PiePlot plot = (PiePlot) chart.getPlot(); plot.setPieIndex(0); // plot.setLabelFont(new Font("SansSerif", Font.NORMAL, 12)); plot.setNoDataMessage("No data available"); plot.setCircular(false); plot.setLabelLinksVisible(true); // plot.zoom(200); // plot.setStartAngle(180); // plot.setLabelBackgroundPaint(paint); plot.setLabelLinkMargin(0.01); return chart;
pieplot.setLabelLinksVisible(labelLinksVisible);