BarRenderer => ItemLabelAnchorOffset

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
los-schmockos
Posts: 1
Joined: Fri Nov 08, 2013 2:21 pm
antibot: No, of course not.

BarRenderer => ItemLabelAnchorOffset

Post by los-schmockos » Fri Nov 08, 2013 2:34 pm

Hello,

I am creating multiple BarCharts based on dynamic data. I placed the label of the bars above the bars by using setSeriesPositiveItemLabelPosition. The ItemLabelPosition is OUTSIDE12 and the TextAnchor is BASELINE_CENTER. Allthough the position is almost correct, I would like to add some more space between the bars and their respective labels.

I tried using the setItemLabelAnchorOffset(x) method. This results in more space between the bars and the labels, but I am not sure what the value x I give as parameter to the setItemLabelAnchorOffset method really stands for. It is some double value, but what does it actually mean if I set x = 2d? I guess that it is some relative value, but I don't know in relation to what.

If anybody here has any idea, please help me out!

Thank you in advance and best regards,
MJ

Locked