Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- svgElement.selectAll(".positiveBar")
- .data(function(d){ return d; })
- .enter()
- .append("rect")
- .attr("x", function(d, i, j){
- return x(d.time) + x.bandwidth() / n *j;
- })
- .attr("width", x.bandwidth() / n)
- .attr("y", function(d) { return y(d.y); })
- .attr("height", function(d){ return y(0)- y(d.y); })
- .attr("class","positiveBar")
- .attr("fill",function(d, i, j) {
- return colors ? colors[j] : '#111';
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement