From b79e0be82067e93f9aff60760465d87ff95c45ef Mon Sep 17 00:00:00 2001 From: sudodoki Date: Sat, 26 Oct 2013 00:18:16 +0300 Subject: [PATCH 1/2] feature: optional xAxisLabelPadding --- lib/morris.bar.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/morris.bar.coffee b/lib/morris.bar.coffee index 5e6c37a..73abeb0 100644 --- a/lib/morris.bar.coffee +++ b/lib/morris.bar.coffee @@ -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] From c9820c2d447c1887c180ed79cbe8a974ba76f104 Mon Sep 17 00:00:00 2001 From: sudodoki Date: Sat, 26 Oct 2013 00:49:14 +0300 Subject: [PATCH 2/2] it is actually only top padding --- lib/morris.bar.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/morris.bar.coffee b/lib/morris.bar.coffee index 73abeb0..c998997 100644 --- a/lib/morris.bar.coffee +++ b/lib/morris.bar.coffee @@ -56,7 +56,7 @@ class Morris.Bar extends Morris.Grid # @private drawXAxis: -> # draw x axis labels - ypos = @bottom + (@options.xAxisLabelPadding || @options.padding / 2) + ypos = @bottom + (@options.xAxisLabelTopPadding || @options.padding / 2) prevLabelMargin = null prevAngleMargin = null for i in [0...@data.length]