function stack(i) {
        var x0 = 0;
        return function(d) {
            var tx = "translate(" + x0 + "," + barHeight * i * 1.2 + ")";
            x0 += x(d.data.value);
            return tx;
        };
    }
// A stateful closure for stacking bars horizontally.
A stateful closure for stacking bars horizontally.
A stateful closure for stacking bars horizontally .
function stack(i) {
        var x0 = 0;
        return function(d) {
            var tx = "translate(" + x0 + "," + barHeight * i * 1.2 + ")";
            x0 += x(d.data.value);
            return tx;
        };
    }
function stack ( i ) { var x0 = 0 ; return function ( d ) { var tx = "translate(" + x0 + "," + barHeight * i * 1.2 + ")" ; x0 += x ( d . data . value ) ; return tx ; } ; }
A stateful closure for stacking bars horizontally.
A stateful closure for stacking bars horizontally .