sparklines = (dataset) => {
var data = dataParser(dataset);
const svg = d3.create("svg")
.attr("viewBox", [0, 0, 14, 1])
.attr("width", 75)
.attr("height", 25);
const bar = svg.append("g")
.attr("fill", "steelblue")
.selectAll("rect")
.data(data)
.join("rect")
.attr('class', 'bar')
.attr("x", (d, i) => x(i))
.attr("y", d => y(d.value))
.attr("height", d => y(0) - y(d.value))
.attr("width", BAR_WIDTH);
return svg.node();
}