D3.js version 4 (4.2.1), solution 2 avec jQuery
var dataset = [["a", "b"], ["c", "d"]]; d3.selectAll("tr").selectAll("td") .text(function (d, i) { return dataset[$(this.parentNode).index()][i]; });