fix #8056 - more refinements to checking data
[g.raphael] / g.raphael.0.51.js
index 5fa9879..a871140 100644 (file)
@@ -844,10 +844,17 @@ Raphael.g = {
                 dx = (length - (opts.loffset + opts.roffset)) / steps,
                 txt = 0,
                 prev = 0;
-
+        
+            if(dx < 1){
+                dx = 1;
+            }
+        
             while (X <= x + length) {
                 Roo.log('label ' + j + ":" + labels[j]);
+                
                 if (typeof(labels[j]) == 'undefined') {
+                    label += d;
+                    X += dx;
                     continue;
                 }
                 // add the line