Dynamic label position

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Mich
Posts: 9
Joined: Mon Nov 09, 2009 2:33 pm
antibot: No, of course not.

Dynamic label position

Post by Mich » Wed Nov 24, 2010 10:31 am

Hi all,

is it possible to dynamically decide the position of the label based on the position of the point in the chart?
Example: if a point is drawed at the right margin the label should be drawed on the left, if a point is drawed at the top margin the label should be draw on the bottom, and so on... otherwise the label will be cut off.

Should I override

Code: Select all

getSeriesPositiveItemLabelPosition 
or

Code: Select all

drawItemLabel
?

Thx

Locked