svg.selectAll(".bar").data(data).enter().append("rect").attr("class", "bar").attr('rx', 5).attr('ry', 5).attr('x', 0).attr("width", (d) => { 0 } ).attr("y", (d) => { return y(d.salesperson); } ).attr('height', 10).attr('transform', 'translate(' + 0 + ',' + ((y.bandwidth()/2)- 5) + ')').transition().duration(1500).delay((d, i) => { return i*250 }).attr('width', (d) => { return x(d.sales) }).attr('fill', (d,i) => { return colorScheme[i] } )