你的问题我没办法解决,但是无意中看到你的代码,我的问题解决了,有空我去把这个问题发一下,困绕了半天,就是那个柱子上数值要是太大的话就没办法显示出来,看到你的这两句代码我就意识到我有救了,感谢!
customBarRenderer.setBasePositiveItemLabelPosition(new ItemLabelPosition( 
ItemLabelAnchor.OUTSIDE12, TextAnchor.BASELINE_CENTER)); 
customBarRenderer.setItemLabelAnchorOffset(10D);// 设置柱形图上的文字偏离值 

解决方案 »

  1.   

    你是要把数值放顶端吗,customBarRenderer.setItemLabelAnchorOffset(10D);这句话就是定义他的偏移值的,如果你的代码没其他的错误的话,应该是可以出你的结果的!
      

  2.   

    renderer.setItemLabelGenerator(new StandardCategoryItemLabelGenerator());
    renderer.setItemLabelsVisible(true);
    // 默认的数字显示在柱子中,通过如下两句可调整数字的显示
    renderer.setPositiveItemLabelPosition(new ItemLabelPosition(
    ItemLabelAnchor.OUTSIDE12,TextAnchor.BASELINE_LEFT));
      

  3.   

    太好了!我的问题解决了!
    感谢楼主和zlq4863947