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