{
const svg = createSvg();
const _xAxis = svg.append("g")
.attr("transform", `translate(0,${height - margin.bottom})`)
.call(xAxis);
const _yAxis = svg.append("g")
.attr("transform", `translate(${margin.left}, 0)`)
.call(yAxis);
const _line = svg.append("g")
.attr("translform", `translate(0, 0)`)
.append("path")
.attr("fill", "none")
.attr("stroke", "steelblue")
.attr("stroke-width", 1.5)
.attr("stroke-linejoin", "round")
.attr("stroke-linecap", "round")
.attr("d", line(data));
const _origin = svg.append("circle")
.attr("translform", `translate(0, 0)`)
.attr("cx", 0 + margin.left)
.attr("cy", 0 + height - margin.bottom)
.attr("r", 2)
.attr("fill", "red")
.append("text");
return svg.node();
}