jfreechart 柱图x坐标轴标签太密集,标签重叠了.JFreeChart chart = ChartFactory.createStackedBarChart3D("","","",dataset_bar,PlotOrientation.VERTICAL,true,true,false); CategoryPlot plot = (CategoryPlot) chart.
来源:学生作业帮助网 编辑:作业帮 时间:2024/06/21 16:58:47
![jfreechart 柱图x坐标轴标签太密集,标签重叠了.JFreeChart chart = ChartFactory.createStackedBarChart3D("","","",dataset_bar,PlotOrientation.VERTICAL,true,true,false); CategoryPlot plot = (CategoryPlot) chart.](/uploads/image/z/12528816-24-6.jpg?t=jfreechart+%E6%9F%B1%E5%9B%BEx%E5%9D%90%E6%A0%87%E8%BD%B4%E6%A0%87%E7%AD%BE%E5%A4%AA%E5%AF%86%E9%9B%86%2C%E6%A0%87%E7%AD%BE%E9%87%8D%E5%8F%A0%E4%BA%86.JFreeChart+chart+%3D+ChartFactory.createStackedBarChart3D%28%26quot%3B%26quot%3B%2C%26quot%3B%26quot%3B%2C%26quot%3B%26quot%3B%2Cdataset_bar%2CPlotOrientation.VERTICAL%2Ctrue%2Ctrue%2Cfalse%29%3B+CategoryPlot+plot+%3D+%28CategoryPlot%29+chart.)
jfreechart 柱图x坐标轴标签太密集,标签重叠了.JFreeChart chart = ChartFactory.createStackedBarChart3D("","","",dataset_bar,PlotOrientation.VERTICAL,true,true,false); CategoryPlot plot = (CategoryPlot) chart.
jfreechart 柱图x坐标轴标签太密集,标签重叠了.
JFreeChart chart = ChartFactory.createStackedBarChart3D("","","",dataset_bar,PlotOrientation.VERTICAL,true,true,false); CategoryPlot plot = (CategoryPlot) chart.getPlot(); plot.setBackgroundPaint(Color.white); CategoryAxis categoryaxis = plot.getDomainAxis(); categoryaxis.setCategoryLabelPositions(CategoryLabelPositions.UP_45); categoryaxis.setMaximumCategoryLabelWidthRatio(5.0f); categoryaxis.setMaximumCategoryLabelLines(1); categoryaxis.setTickLabelsVisible(false); chart.setBackgroundImageAlpha(0.01F); categoryaxis.setTickMarksVisible(true); categoryaxis.setCategoryLabelPositionOffset(20); return chart;
jfreechart 柱图x坐标轴标签太密集,标签重叠了.JFreeChart chart = ChartFactory.createStackedBarChart3D("","","",dataset_bar,PlotOrientation.VERTICAL,true,true,false); CategoryPlot plot = (CategoryPlot) chart.
你可以渲染一下图表啊,也可以设置横坐标的长度的