Merge pull request #306 from sudodoki/feature/xLabelPadding

feature: option to set padding for x axis label
This commit is contained in:
Olly Smith 2013-11-09 08:52:46 -08:00
commit 4580852416

View File

@ -56,7 +56,7 @@ class Morris.Bar extends Morris.Grid
# @private # @private
drawXAxis: -> drawXAxis: ->
# draw x axis labels # draw x axis labels
ypos = @bottom + @options.padding / 2 ypos = @bottom + (@options.xAxisLabelTopPadding || @options.padding / 2)
prevLabelMargin = null prevLabelMargin = null
prevAngleMargin = null prevAngleMargin = null
for i in [0...@data.length] for i in [0...@data.length]