sam140
sam140

Reputation: 249

How to remove slice section marker from jfree chart

i am using jfree chart in my report.I want to remove slice section from the piechart: enter image description here

Also,i want to make it center the slice value and mentioned below the script which i am using currently:

import java.awt.Color;
import org.jfree.chart.plot.PiePlot3D;
import org.jfree.chart.plot.PiePlot;

PiePlot plot = (PiePlot) chart.getPlot();
plot.setSimpleLabels(true);
plot.setOutlineVisible(false);
plot.setOutlinePaint(new Color(0, 0, 0, 0));
plot.setLabelShadowPaint(new Color(0, 0, 0, 0));
plot.setLabelBackgroundPaint(new Color(0, 0, 0, 0));
plot.setLabelOutlinePaint(new Color(0, 0, 0, 0)); 

can anyone suggest me how we can do ..

Upvotes: 1

Views: 180

Answers (1)

sam140
sam140

Reputation: 249

Resolve the problem by using plot.setSeparatorsVisible(false).

Upvotes: 2

Related Questions