WorldMap = {
const width = 720;
const height = 360;
const svg = d3.create("svg").attr("viewBox", [-360, -180, width, height]);
const bg = svg
.append("rect")
.attr("x", -360)
.attr("y", -180)
.attr("width", width)
.attr("height", height)
.attr("fill", "#ADD8E6");
const long_scaled = [];
const lat_scaled = [];
for (let i = 0; i < 240; i++) {
long_scaled[i] = (helloDataset[i].long)*2;
lat_scaled[i] = (helloDataset[i].lat)*(-2);
svg
.append("circle")
.attr("cx", long_scaled[i])
.attr("cy", lat_scaled[i])
.attr("r", 1)
.attr("id", helloDataset[i].country)
.attr("fill", "#00FF00");
svg
.append("text")
.attr("x", long_scaled[i])
.attr("y", lat_scaled[i]-2)
.text(helloDataset[i].hello)
.style("text-anchor", "middle")
.attr("fill", "#000000")
.style("font-size", "2")
.style("text-anchor", "middle")
}
return svg.node();
}