I\'m trying to get the values for an element\'s translation.
For example, if I select the x axis:
d3.select(\'.x.axis\').attr(\"transform\")
D3 provides the transform() function for exactly this purpose:
var t = d3.transform(d3.select('.x.axis').attr("transform")), x = t.translate[0], y = t.translate[1];