Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- groups.selectAll('.bartext')
- .data(function(d) {
- return d;
- })
- .enter()
- .append("text")
- .attr("class", "bartext")
- .attr("text-anchor", "end")
- .attr("fill", "black")
- .attr('x', function(d) {
- return xScale(d.x0) + xScale(d.x);
- })
- .attr('y', function(d, i) {
- return yScale(d.y) + yScale.rangeBand() / 2;
- })
- .text(function(d) {
- return d.x;
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement