fix #8056 - more refinements to checking data
[g.raphael] / g.raphael.0.51.js
index 04cef4a..a871140 100644 (file)
@@ -844,9 +844,14 @@ 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;