A discussion forum for JFreeChart (a 2D chart library for the Java platform).
-
rmk
- Posts: 7
- Joined: Wed Apr 26, 2006 1:50 pm
- Location: Paris
Post
by rmk » Thu Aug 31, 2006 8:36 am
Hello,
I have a bar chart with "item labels", but some them don't appear, as you can see here :
http://cjoint.com/?iFjHmS0rsm
How can I do to have all item labels drawn ?

-
david.gilbert
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
-
Contact:
Post
by david.gilbert » Thu Aug 31, 2006 10:44 am
The ones that are not drawing are the labels that are too wide to fit within the bar. In this case, the label position reverts to the return value from getPositiveItemLabelPositionFallback(). If this is null, the label is not drawn at all. You probably want to call setPositiveItemLabelPositionFallback() and specify the center position to force these labels to be displayed where they are. ItemLabelDemo5.java in the JFreeChart demo collection does this.
-
rmk
- Posts: 7
- Joined: Wed Apr 26, 2006 1:50 pm
- Location: Paris
Post
by rmk » Thu Aug 31, 2006 12:26 pm
ok, thx a lot