Index: chart.module
===================================================================
--- chart.module	(revision 113)
+++ chart.module	(working copy)
@@ -360,7 +360,7 @@
         $output .= _chart_encode_data($v, $type);
       }
       else {     
-        if ($v != 'NULL'){
+        if (is_numeric($v)){
           $output .= $v . ','; 
         }
         else {
@@ -404,7 +404,7 @@
         _chart_adjust_resolution($chart_id, $data[$k]);
       }
       else {   
-        if ($v != 'NULL' && $v > 0){   
+        if (is_numeric($v)){   
           // Adjust values
           if ($v >= $max){
             $data[$k] = $resoluton;
