chart = {
const svg = d3.create("svg")
.attr("viewBox", [0, 0, width, height]).style("border","1px solid black");
const gx = svg.append("g").call(xAxis, x);
const gy = svg.append("g").call(yAxis, y);
const gc = svg.append("g");
const circles = gc.selectAll('circle').data(data).join('circle')
.style('fill', 'steelblue')
.attr("cx", d => x(d.Longitude))
.attr("cy", d => y(d.Latitude))
.attr("r", 3);
return svg.node();
}