{
const width = 720;
const height = 360;
const svg = d3.create("svg").attr("viewBox", [0, 0, width, height]);
for (let i = 0; i < helloDataset.length; i++) {
const xPosition = (parseFloat(helloDataset[i].long) + 180) * 2;
const yPosition = height - (parseFloat(helloDataset[i].lat) + 90) * 2;
svg
.append("circle")
.attr("cx", xPosition)
.attr("cy", yPosition)
.attr("r", 2)
.attr("fill", "white")
.attr("stroke", "black")
.attr("stroke-width", 1);
svg
.append("text")
.attr("x", xPosition + xOffset)
.attr("y", yPosition + yOffset)
.text(helloDataset[i].hello)
.attr("fill", "black")
.attr("font-family", "courier")
.attr("font-size", fontSize);
}
return svg.node();
}