How to reposition a tick label?

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
stu
Posts: 10
Joined: Mon Aug 01, 2005 1:44 pm

How to reposition a tick label?

Post by stu » Mon Aug 01, 2005 2:47 pm

Does anyone know if its possible to move a tick label? By default they are positioned centrally over the corresponding tick but what if I want to move it to the left of the tick?

I'm guessing its something to do with setTickLabelInsets() but I'm not really sure?

Thanks in advance :)

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 » Mon Aug 01, 2005 3:55 pm

They are always centered. You'd need to modify the code in refreshTicks() to position them differently.
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

Locked