chart = {
const width = 928;
const height = 928;
const grid_length = Math.ceil(Math.sqrt(grid_count))
const radius = (width/grid_length)/2
const svg = d3.create("svg")
.attr("viewBox", [0, 0, width, height])
.attr("width", width)
.attr("height", height)
.attr("style", "max-width: 100%; height: auto; background-color:grey;");
svg
.selectAll("circle")
.data(d3.range(grid_count))
.join("circle")
.attr("cx", d => { return ((d%grid_length) * width/grid_length ) + radius})
.attr("cy", d => { return (Math.floor(d/grid_length) * width/grid_length ) + radius})
.attr("r", radius - margin)
.attr("fill", "#001b42");
return svg.node();
}