g.bar.overlay.js
authorleon <leon@roojs.com>
Tue, 12 Mar 2024 04:01:10 +0000 (12:01 +0800)
committerleon <leon@roojs.com>
Tue, 12 Mar 2024 04:01:10 +0000 (12:01 +0800)
g.bar.overlay.js

index 1c69cb5..f853b21 100644 (file)
@@ -166,8 +166,6 @@ if (typeof(Raphael) == 'undefined') {
                 value = [value];
             }
 
-            // 10 pixels away from top of the chart
-            // 10 pixels away from left of the chart
             if(legendKeyShape == 'rect') {
                 // pass top left position for 'rect'
                 paper.rect(x + (i * (width - x) / len) + legendKeyOffsetX, y + legendKeyOffsetY, legendKeySize, legendKeySize, 0).attr({ fill: colors[i%colors.length], "stroke": "#fff" });
@@ -215,7 +213,7 @@ if (typeof(Raphael) == 'undefined') {
                     iy = y + opts.legendheight + 1 - ih - 20;
                 }
                 
-                paper.rect(ix , iy, iw, ih, 2).attr({ stroke: "none", fill: colors[i%colors.length] });
+                paper.rect(ix , iy, iw, ih, 4).attr({ stroke: "none", fill: colors[i%colors.length] });
                 paper.path(["M", ix + (iw - 10) / 2, iy + ih, "l", 5, 10, "l", 5, -10]).attr({ stroke: "none", fill: colors[i%colors.length] });
                 // align labels center
                 paper.text(ix + iw / 2, iy + ih / 2 - labelSize / 10, Roo.util.Format.number(v, 0)).attr({