{
let svg = d3.create("svg").attr("width", myWidth).attr("height", myHeight);
svg
.append("rect")
.attr("width", myWidth)
.attr("height", myHeight)
.attr("fill", "#efefef");
let points = svg
.selectAll("circle")
.data(carModelsData)
.join("circle")
.attr("cx", (d) => xScale(d["displacement (cc)"]))
.attr("cy", (d) => yScale(d["weight (lb)"]))
.attr("r", (d) => sizeScale(d["economy (mpg)"]))
.attr("fill", "#ffffff")
.attr("fill-opacity", 0.5)
.attr("stroke", "#000000");
svg.append("g").call(x_axis);
svg.append("g").call(y_axis);
return svg.node();
}