feature: optional xAxisLabelPadding

This commit is contained in:
sudodoki 2013-10-26 00:18:16 +03:00
parent a738317adb
commit b79e0be820

View file

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