Reputation: 5042
Please consider following graph :
The above bar graph is built using jfreechart. I have two questions:
1) Values (1,5,4 etc.)are printed on the top but within the bars.How to display these on the top but above the bars?
2)Each value is printed on the bars in horizontal manner. How to display them in proper vertical manner?
Thanks...
Upvotes: 0
Views: 5655
Reputation: 205875
Expanding on @Jes's helpful suggestion, you can see how ChartFactory.createBarChart()
uses ItemLabelPosition
in the relevant source code. More on the label generator parameters may be found here.
Upvotes: 2