how to display customized values on a bar in bar chart using jfree chart?

后端 未结 2 1498
终归单人心
终归单人心 2021-01-15 11:35

By using StandardCategoryItemLabelGenerator() Iam able to display the exact range axis value on a bar, Now my problem is I dont want to display the range axis value instead

2条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-15 12:21

    renderer.setBaseItemLabelGenerator(
    new StandardCategoryItemLabelGenerator()
     @Override
     public String generateLabel(CategoryDataset dataset, int row, int column) {
            return "Your Text" +row+","+column;
     }
    );
    

提交回复
热议问题