LineChart = {
const svg = d3.select(DOM.svg(width + margin.left + margin.right, height + margin.top + margin.bottom))
.attr("width", width)
.attr("height", height)
const g = svg.append("g")
.attr('transform', `translate(${margin.left}, ${margin.top})`)
g.append("g")
.attr("class", "x axis")
.attr("transform", "translate(0," + height + ")")
.call(d3.axisBottom(xScale));
g.append("g")
.attr("class", "y axis")
.call(d3.axisLeft(yScale));
g.append("path")
.datum(nestedData)
.style("stroke", "#000")
.style("fill", "none")
.attr("d", lineGenerator);
g.selectAll("circle")
.data(nestedData)
.enter().append("circle")
.attr("cx", d=> xScale(d.key))
.attr("cy", d=> yScale(d.value))
.attr("r", 5);
return svg.node();
}