chart = {
const width = 928;
const height = width;
const margin = 1;
const names = (d) => d["Name"];
const format = d3.format(",d");
const pack = d3
.pack()
.size([width - margin * 2, height - margin * 2])
.padding(3);
const root = pack(d3.hierarchy({ children: data }).sum((d) => d.acres));
console.log(root)
console.log(root);
const svg = d3
.create("svg")
.attr("width", width)
.attr("height", height)
.attr("viewBox", [-margin, -margin, width, height])
.attr("style", "max-width: 100%; height: auto; font: 10px sans-serif;")
.attr("text-anchor", "middle");
const node = svg
.append("g")
.selectAll()
.data(root.leaves())
.join("g")
.attr("transform", (d) => `translate(${d.x},${d.y})`);
node.append("title").text((d) => `${d.data["Name"]}\n${format(d.value)}`);
node
.append("circle")
.attr("fill-opacity", 0.7)
.attr("r", (d) => d.r);
return Object.assign(svg.node());
}