`;
const nestedKeys = Object.keys(value).filter((k) => k !== "link");
if (nestedKeys.length > 0) {
html += "
";
nestedKeys.forEach((nestedKey) => {
processEntry(nestedKey, value[nestedKey]);
});
html += "
";
}
} else if (typeof value === "string") {
html += `
`;
}
html += "";
};
Object.entries(data).forEach(([key, value]) => processEntry(key, value));
html += "";
return html;
}
const htmlContent = createHtmlFromJson(jsonData);
const chartContainer = document.getElementById("orgChartContainer");
chartContainer.innerHTML = htmlContent;