chart = {
const svg = d3
.create("svg")
.attr("width", width)
.attr("height", height)
.style("border", "1px solid lightgrey");
const gx = svg.append("g").call(xAxis, xScale);
const gy = svg.append("g").call(yAxis, yScale);
const gc = svg.append("g");
const circles = gc
.selectAll("circle")
.data(data)
.join("circle")
.style("fill", "steelblue")
.style("opacity", 0.8)
.attr("cx", (d) => xScale(d.Longitude))
.attr("cy", (d) => yScale(d.Latitude))
.attr("r", 3);
circles.append("title").text((d) => d.FullName);
svg.node().update = function (xScaleNew, yScaleNew) {
};
return svg.node();
}