g.bar.vertical.js
authorleon <leon@roojs.com>
Mon, 27 Nov 2023 03:27:50 +0000 (11:27 +0800)
committerleon <leon@roojs.com>
Mon, 27 Nov 2023 03:27:50 +0000 (11:27 +0800)
g.bar.vertical.js

index ce61d96..792654e 100644 (file)
@@ -166,7 +166,8 @@ Roo = typeof(Roo) != 'undefined' ? Roo:  (imports ? imports.seed.Roo.Roo: {});
 
 
         for(var i = 0; i <= steps; i++) {
-            paper.text(23, y - i * dl, Roo.util.Format.number(Math.round(i * d), 0)).attr({ 
+            // 20 pixels away from the left of the graph
+            paper.text(20, y - i * dl, Roo.util.Format.number(Math.round(i * d), 0)).attr({ 
                 "font-size": axisFontSize,
                 "font-family": axisFont,
                 "font-weight": axisFontWeight,