Skip to content

Commit

Permalink
Merge pull request #306 from sudodoki/feature/xLabelPadding
Browse files Browse the repository at this point in the history
feature: option to set padding for x axis label
  • Loading branch information
oesmith committed Nov 9, 2013
2 parents c1264ca + c9820c2 commit 4580852
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/morris.bar.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class Morris.Bar extends Morris.Grid
# @private
drawXAxis: ->
# draw x axis labels
ypos = @bottom + @options.padding / 2
ypos = @bottom + (@options.xAxisLabelTopPadding || @options.padding / 2)
prevLabelMargin = null
prevAngleMargin = null
for i in [0...@data.length]
Expand Down

0 comments on commit 4580852

Please sign in to comment.