Skip to content

Commit 4580852

Browse files
committed
Merge pull request #306 from sudodoki/feature/xLabelPadding
feature: option to set padding for x axis label
2 parents c1264ca + c9820c2 commit 4580852

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/morris.bar.coffee

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class Morris.Bar extends Morris.Grid
5656
# @private
5757
drawXAxis: ->
5858
# draw x axis labels
59-
ypos = @bottom + @options.padding / 2
59+
ypos = @bottom + (@options.xAxisLabelTopPadding || @options.padding / 2)
6060
prevLabelMargin = null
6161
prevAngleMargin = null
6262
for i in [0...@data.length]

0 commit comments

Comments
 (0)