#102 Unable to display item labels in bar chart

open
nobody
None
5
2013-01-13
2005-07-06
Anonymous
No

I am showing a vertical bar chart with date on x axis and
numbers on y axis. I want to display the range value(y-
axis value) of each bar on top of the bar. We could do it
with JFreeChart using

CategoryItemRenderer renderer = plot.getRenderer();
CategoryLabelGenerator
generator = new StandardCategoryLabelGenerator(
"{2}", new DecimalFormat
("0"));
renderer.setLabelGenerator
(generator);
renderer.setItemLabelFont
(new Font("Serif", Font.PLAIN, 10));
renderer.setItemLabelsVisible
(true);

I am unable to locate any tag attributes to do this.
Please help.

Discussion


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks