--- ./chart.module	2010-01-21 15:47:51.000000000 -0500
+++ ./chart.module.new	2010-01-21 15:48:23.000000000 -0500
@@ -274,10 +274,11 @@ function chart_build($chart) {
   _chart_append('chxs', $chart['#mixed_axis_label_styles'], $data);
   _chart_append('chbh', $chart['#bar_size'],                $data); 
   _chart_append('chld', $chart['#countries'],               $data); 
-  _chart_append('chtm', $chart['#georange'],                $data); 
+  _chart_append('chtm', $chart['#georange'],                $data);
+  _chart_append('chma', $chart['#margins'],                 $data);
          
   $charts[$chart['#chart_id']] = drupal_query_string_encode($data);       
-                  
+      
   return $charts[$chart['#chart_id']];
 }
 
@@ -438,6 +439,13 @@ function _chart_append($attr, $value, &$
   }   
                                                 
   switch($attr) {
+    // Margins
+    case 'chma':
+      // Remove any whitespace from this value
+      // Otherwise these spaces are encoded and the margins will not work
+      $data[$attr] = str_replace(" ", "", $value);
+      break;
+      
     // Type
     case 'cht':
       $data[$attr] = $value;  
