       }

            if((nSamples % 5) == 0) svg.selectAll("path")
                    .data(function() { return stack2(btcSamples); })
                    //.enter().append("path")
                    .transition()
                    .duration(1000)
                    .attr("d", function(d) { return area(d.values); })
                    .style("fill", function(d) { return color(d.color / nJsKeys); });

            if((nSamples % 5) == 0) svg2.selectAll("path")
                    .data(function() { ret