Hi,
Im having problems adding permanent tooltips/labels to my bar charts. i want the values corresponding to the y axis to be shown on the bars of my bar graph or just above the bars.
my program is almost exactly like bar chart demo.
Many thanks...
Tooltips/labels above Bars
Code: Select all
BarRenderer renderer = (BarRenderer) plot.getRenderer();
renderer.setItemLabelFont(new Font("Arial", Font.BOLD, 9));
renderer.setLabelGenerator(new StandardCategoryLabelGenerator(
"{2}", new DecimalFormat("0.0")
));
renderer.setItemMargin(0.0);
renderer.setItemLabelsVisible(true);