worldMap = {
const width = 720;
const height = 360;
const margin = 20;
const svg = d3.create("svg").attr("viewBox", [0, 0, width, height]);
for (let i=0; i< helloDataset.length; i++) {
const revLong = (parseFloat(helloDataset[i].long) + 180)*2;
const revLat = height - (parseFloat(helloDataset[i].lat) + 90)*2;
svg
.append("circle")
.attr("cx", revLong)
.attr("cy", revLat)
.attr("r", 2)
.style("fill", "rgb(" + Math.random()*255 + "," + Math.random()*255 + "," + Math.random()*255 + ")");
svg
.append("text")
.attr("x", revLong)
.attr("y", revLat)
.attr("font-size", "8px")
.attr("font-family", "Verdana")
.text(helloDataset[i].hello);
}
return svg.node();
}