The axis.labelWidth is calculated incorrectly, if it isn't set by the user. The default is divide by 6, while it should actually be divided by the number of ticks.
axis.labelWidth=canvasWidth/6
should become:
axis.labelWidth=canvasWidth/axis.ticks.length
Comment #1
Posted on Sep 7, 2009 by Quick WombatHi! Thanks for the comment. I think it was like that in the beginning, but something made me hardcode it. Or maybe I'm wrong. Have you tested it with a various layouts?
Comment #2
Posted on Sep 8, 2009 by Happy BirdYeah, it works perfectly for 7, 8, 30 and 31 ticks. I'm guessing that it works for all numbers.
Comment #3
Posted on Oct 21, 2009 by Quick WombatThere's another patch that redoes this part of the code, but that's currently stalled. So I'm merging it now. Thanks!
Status: Fixed
Labels:
Type-Defect
Priority-Medium