sparkline = {
const dimension = "Major_Genre";
const countByDimension = [...d3.rollup(tableRows, v => v.length, d => d[dimension]).values()];
return hist(countByDimension, {
domain: d3.extent(countByDimension),
thresholds: 5,
width: 60,
height: 10,
fillStyle: color(dimension),
domainLineWidth: 1
})
}