mirror of
https://github.com/morrisjs/morris.js.git
synced 2024-11-10 21:36:34 +01:00
Merge pull request #306 from sudodoki/feature/xLabelPadding
feature: option to set padding for x axis label
This commit is contained in:
commit
4580852416
@ -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]
|
||||||
|
Loading…
Reference in New Issue
Block a user