How can I center text both horizontally and vertically on a D3.js SVG grid rect ?
Here is the example I am trying to get working:
https://jsfiddle.net/djangofan/koc74p9x/4/
var columnText = row.selectAll(".column") // select .column val from data
.data(function(d) { return d; })
.enter().append("text")
.text(function(d) { return d.chord; })
.attr("x", function(d) { return d.x; })
.attr("y", function(d) { return d.y; })
.style("fill", "red");
And here is what it looks like. I want the 'Gm' text to be centered in the first cell. If I try to adjust down, the text disappears as it passes the top border of the cell.

