From 7aa14b1b82bf3cbe5d0b1e4d099b8ce0e12ac0e0 Mon Sep 17 00:00:00 2001 From: winter <2436197699@qq.com> Date: Thu, 7 Mar 2024 15:55:38 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E4=B9=B1=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../teammodel/service/impl/EvaluationServiceImpl.java | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/main/java/cn/teammodel/service/impl/EvaluationServiceImpl.java b/src/main/java/cn/teammodel/service/impl/EvaluationServiceImpl.java index 1c4c5ed..8598c49 100644 --- a/src/main/java/cn/teammodel/service/impl/EvaluationServiceImpl.java +++ b/src/main/java/cn/teammodel/service/impl/EvaluationServiceImpl.java @@ -659,12 +659,6 @@ public class EvaluationServiceImpl implements EvaluationService { praiseDistributionDataset.setValue(FiveEducations.ART.getName(), reportVo.getPraiseDistribution().get(FiveEducations.ART.getCode())); praiseDistributionDataset.setValue(FiveEducations.LABOUR.getName(), reportVo.getPraiseDistribution().get(FiveEducations.LABOUR.getCode())); JFreeChart praisePieChart = ChartUtil.pieChart("五育表扬指标分布", praiseDistributionDataset); - // 设置字体 - Font font = new Font("SimSun", Font.PLAIN, 12); - praisePieChart.getRenderingHints().put(RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_LCD_HRGB); - praisePieChart.getTitle().setFont(font); - praisePieChart.getLegend().setItemFont(font); - praisePieChart.getLegend().setItemPaint(Color.BLACK); PiePlot plot1 = (PiePlot) praisePieChart.getPlot(); plot1.setNoDataMessage("无数据"); plot1.setNoDataMessageFont(new Font("宋体", Font.PLAIN, 18)); @@ -680,10 +674,7 @@ public class EvaluationServiceImpl implements EvaluationService { criticalDistributionDataset.setValue(FiveEducations.ART.getName(), reportVo.getCriticalDistribution().get(FiveEducations.ART.getCode())); criticalDistributionDataset.setValue(FiveEducations.LABOUR.getName(), reportVo.getCriticalDistribution().get(FiveEducations.LABOUR.getCode())); JFreeChart criticalPieChart = ChartUtil.pieChart("五育待改进指标分布", criticalDistributionDataset); - criticalPieChart.getRenderingHints().put(RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_LCD_HRGB); - criticalPieChart.getTitle().setFont(font); - criticalPieChart.getLegend().setItemFont(font); - criticalPieChart.getLegend().setItemPaint(Color.BLACK); + PiePlot plot2 = (PiePlot) criticalPieChart.getPlot(); plot2.setNoDataMessage("无数据"); plot2.setNoDataMessageFont(new Font("宋体", Font.PLAIN, 18));