render_linechart = function(data, xAxis, yAxis, lineFunction, debug) {
const svg = d3.select(DOM.svg(width, height));
svg.append("text")
.attr("x", width / 2)
.attr("y", margin.top)
.attr("dy", "1em")
.attr("font-weight", "bold")
.style("text-anchor", "middle")
.text("Mean Heat Ratios, 10-24-2019 to 10-26-2019");
svg.append("g")
.call(xAxis);
svg.append("text")
.attr("x", width / 2)
.attr("y", height - (margin.bottom / 2))
.attr("dy", "1em")
.attr("font-size", 14)
.style("text-anchor", "middle")
.text("Date");
svg.append("g")
.call(yAxis);
svg.append("text")
.attr("transform", "rotate(-90)")
.attr("y", 0)
.attr("x", -(height / 2))
.attr("dy", "1em")
.attr("font-size", 14)
.style("text-anchor", "middle")
.text("Mean Heat Ratio");
svg.append("path")
.datum(data.filter(line.defined()))
.attr("fill", "none")
.attr("stroke", "#3172bc")
.attr("stroke-dasharray", "4 2")
.attr("d", lineFunction);
svg.append("path")
.datum(data)
.attr("fill", "none")
.attr("stroke", "#3172bc")
.attr("stroke-width", 1.5)
.attr("stroke-linejoin", "round")
.attr("stroke-linecap", "round")
.attr("d", lineFunction)
return svg.node();
}