Skip to content

Commit

Permalink
release
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitry Baranovskiy authored and Dmitry Baranovskiy committed Oct 7, 2009
1 parent 0f7083a commit e9e5e35
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 14 deletions.
2 changes: 1 addition & 1 deletion g.bar-min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions g.bar.js
Expand Up @@ -99,6 +99,7 @@ Raphael.fn.g.barchart = function (x, y, width, height, values, opts) {
bar.y = y + height - barvgutter - !!size * .5 - h;
covers.push(cover = this.rect(bar.x - bar.w / 2, bar.y, barwidth, bar.value * Y).attr(this.g.shim));
cover.bar = bar;
cover.value = bar.value;
size += bar.value;
}
X += barwidth;
Expand All @@ -109,10 +110,11 @@ Raphael.fn.g.barchart = function (x, y, width, height, values, opts) {
X = x + barhgutter;
if (!opts.stacked) {
for (var i = 0; i < len; i++) {
for (var j = 0; j < multi; j++) {
for (var j = 0; j < (multi || 1); j++) {
var cover;
covers.push(cover = this.rect(Math.round(X), y + barvgutter, barwidth, height - barvgutter).attr(this.g.shim));
cover.bar = bars[j][i];
cover.bar = multi ? bars[j][i] : bars[i];
cover.value = cover.bar.value;
X += barwidth;
}
X += barhgutter;
Expand Down

0 comments on commit e9e5e35

Please sign in to comment.