作者:书友59082326 | 来源:互联网 | 2023-09-14 15:13
本文整理了Java中org.jfree.chart.plot.PiePlot.setIgnoreZeroValues()
方法的一些代码示例,展示了PiePlot.setIgnoreZeroValues()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。PiePlot.setIgnoreZeroValues()
方法的具体详情如下:
包路径:org.jfree.chart.plot.PiePlot
类名称:PiePlot
方法名:setIgnoreZeroValues
PiePlot.setIgnoreZeroValues介绍
[英]Sets a flag that controls whether zero values are ignored, and sends a PlotChangeEvent to all registered listeners. This only affects whether or not a label appears for the non-visible pie section.
[中]设置控制是否忽略零值的标志,并向所有注册的侦听器发送PlotChangeEvent。这只会影响不可见饼图部分是否显示标签。
代码示例
代码示例来源:origin: com.atlassian.jira/jira-api
plot.setDirection(Rotation.CLOCKWISE);
plot.setIgnoreNullValues(true);
plot.setIgnoreZeroValues(true);
plot.setStartAngle(290);
plot.setShadowXOffset(0.0);
代码示例来源:origin: com.atlassian.confluence.extra.chart/chart-plugin
plot.setDirection(Rotation.CLOCKWISE);
plot.setIgnoreNullValues(true);
plot.setIgnoreZeroValues(true);
plot.setStartAngle(290);
plot.setShadowXOffset(0.0);
代码示例来源:origin: dhis2/dhis2-core
private JFreeChart getMultiplePieChart( BaseChart chart, CategoryDataset[] dataSets )
{
JFreeChart multiplePieChart = ChartFactory.createMultiplePieChart( chart.getName(), dataSets[0], TableOrder.BY_ROW,
!chart.isHideLegend(), false, false );
setBasicConfig( multiplePieChart, chart );
if ( multiplePieChart.getLegend() != null )
{
multiplePieChart.getLegend().setItemFont( SUB_TITLE_FONT );
}
MultiplePiePlot multiplePiePlot = (MultiplePiePlot) multiplePieChart.getPlot();
JFreeChart pieChart = multiplePiePlot.getPieChart();
pieChart.setBackgroundPaint( DEFAULT_BACKGROUND_COLOR );
pieChart.getTitle().setFont( SUB_TITLE_FONT );
PiePlot piePlot = (PiePlot) pieChart.getPlot();
piePlot.setBackgroundPaint( DEFAULT_BACKGROUND_COLOR );
piePlot.setOutlinePaint( DEFAULT_BACKGROUND_COLOR );
piePlot.setLabelFont( LABEL_FONT );
piePlot.setLabelGenerator( new StandardPieSectionLabelGenerator( "{2}" ) );
piePlot.setSimpleLabels( true );
piePlot.setIgnoreZeroValues( true );
piePlot.setIgnoreNullValues( true );
piePlot.setShadowXOffset( 0d );
piePlot.setShadowYOffset( 0d );
for ( int i = 0; i {
piePlot.setSectionPaint( dataSets[0].getColumnKey( i ), COLORS[(i % COLORS.length)] );
}
return multiplePieChart;
}