List of usage examples for org.jfree.chart.plot RingPlot setSectionOutlinesVisible
public void setSectionOutlinesVisible(boolean visible)
From source file:org.hxzon.demo.jfreechart.PieDatasetDemo2.java
private static JFreeChart createRingChart(PieDataset dataset) { RingPlot plot = new RingPlot(dataset); plot.setLabelGenerator(new StandardPieSectionLabelGenerator()); plot.setInsets(new RectangleInsets(0.0, 5.0, 5.0, 5.0)); if (tooltips) { plot.setToolTipGenerator(new StandardPieToolTipGenerator()); }/*from w w w. jav a 2 s . co m*/ if (urls) { plot.setURLGenerator(new StandardPieURLGenerator()); } JFreeChart chart = new JFreeChart("Ring Chart Demo 1", JFreeChart.DEFAULT_TITLE_FONT, plot, legend); plot.setSectionOutlinesVisible(false); plot.setNoDataMessage("No data available"); return chart; }