/**
**QQ:252574345
**MSN:[email protected]
*/
CategoryPlot categoryplot = (CategoryPlot)chart.getPlot();
StackedBarRenderer3D stackedbarrenderer = (StackedBarRenderer3D)categoryplot.getRenderer();
stackedbarrenderer.setBaseItemLabelGenerator(new StandardCategoryItemLabelGenerator() );
當然,和前面的介紹一樣,也可以對顯示的數值進行格式化,例如
//new StandardCategoryItemLabelGenerator("{2}",new DecimalFormat("0.0%"))
可以在柱子上顯示名稱,數值,比例等信息