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;
[img]http://dl.iteye.com/upload/attachment/384493/fac87842-a6df-3c6a-b486-e6a954c480f9.jpg[/img]
很急很急。。若能给出其他解决方案也好!