ght = height - margin.top - margin.bottom;
        const g = svg.append('g')
            .attr('transform', `translate(${margin.left}, ${margin.top})`);
        let root;
        let color;

        const fill = d => {
            if (d.depth === 0)
                return color(d.data.name)
            while (d.depth > 1)
                d = d.parent;
            return color(d.data.name);
        }

        const render = function (data) {
            color = d3.scaleOrdinal()
                .domain(root.