chart = {
const svg = d3.select(DOM.svg(width, height));
svg.append("g")
.call(xAxis);
svg.append("g")
.call(yAxis);
svg.append('text')
.text(`Historic River Flows for the ${riverInput}`)
.attr('transform', 'translate('+ (margin.left-45) +','+ (margin.top-20)+')')
.attr('font-weight', 'bold')
.attr('font-size', '25px');
const path = svg.append("g")
.attr("fill", "none")
.attr("stroke", "steelblue")
.attr("stroke-width", 1.5)
.attr("stroke-linejoin", "round")
.attr("stroke-linecap", "round")
.attr("stroke-opacity", 0.2)
.selectAll("path")
.data(data.series)
.enter().append("path")
.style("mix-blend-mode", "multiply")
.attr("d", d => line(d.value))
.attr("class", d => "year_" + d.key );
svg.call(hover, path);
return svg.node();
}