0
我創建了JFreeChart
並將它傳遞到Jasper pdf報告中顯示。這是我創建圖表的代碼在jasper報告上增加JFreeChart尺寸
JFreeChart chart = ChartFactory.createLineChart(
null, // chart title
null, // domain axis label
scale + " Range", // range axis label
dataset, // data
PlotOrientation.VERTICAL, // orientation
false, // include legend
true, // tooltips
false // urls
);
parameters.put("chartpath", chart.createBufferedImage(1600, 800));
該圖表在pdf報告中顯示非常小,並且無法閱讀。我試圖增加上述createBufferedImage
函數的尺寸,但它不起作用。任何輸入將不勝感激。