fix: 修复乱码

11111
winter 10 months ago
parent c2c1f9cd0b
commit 7aa14b1b82

@ -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));

Loading…
Cancel
Save