@@ -61,6 +61,10 @@ class NVD3Chart:
         * ``htmlcontent`` - Contain the htmloutput
         * ``htmlheader`` - Contain the html header
         * ``jschart`` - Javascript code as string
+        * ``margin_bottom`` - set the bottom margin
+        * ``margin_left`` - set the left margin
+        * ``margin_right`` - set the right margin
+        * ``margin_top`` - set the top margin
         * ``model`` - set the model (ex. pieChart, LineWithFocusChart, MultiBarChart)
         * ``resize`` - False / True
         * ``series`` - Series are list of data that will be plotted
@@ -82,6 +86,10 @@ class NVD3Chart:
     htmlheader = ''
     height = None
     width = None
+    margin_bottom = 50
+    margin_left = 70
+    margin_right = 70
+    margin_top = 30
     model = ''
     d3_select_extra = ''
     x_axis_date = False
@@ -122,6 +130,10 @@ def __init__(self, **kwargs):
         self.jquery_on_ready = kwargs.get('jquery_on_ready', False)
         self.color_category = kwargs.get('color_category', None)
         self.color_list = kwargs.get('color_list', None)
+        self.margin_bottom = kwargs.get('margin_bottom', 20)
+        self.margin_left = kwargs.get('margin_left', 60)
+        self.margin_right = kwargs.get('margin_right', 60)
+        self.margin_top = kwargs.get('margin_top', 30)
         self.stacked = kwargs.get('stacked', False)
         self.resize = kwargs.get('resize', False)
         self.show_legend = kwargs.get('show_legend', True)
@@ -386,6 +398,11 @@ def buildjschart(self):
         if self.stacked:
             self.jschart += stab(2) + "chart.stacked(true);"
 
+        self.jschart += stab(2) + \
+          'chart.margin({top: %s, right: %s, bottom: %s, left: %s})\n' % \
+          (self.margin_top, self.margin_right, \
+           self.margin_bottom, self.margin_left)
+
         """
         We want now to loop through all the defined Axis and add:
             chart.y2Axis