简体   繁体   English

如何从jfree图表中删除切片部分标记

[英]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: 我在报告中使用jfree图表。我想从饼图中删除切片部分: 在此处输入图片说明

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 .. 谁能建议我该怎么做..

通过使用plot.setSeparatorsVisible(false)解决此问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM