I have an issue in IE and Edge where the nodes expand on top of the currently displayed chart.
This behavior is only in IE and Edge, Chrome and Firefox display the chart as expected.
var peopleElement = document.getElementById("people");
var orgChart = new getOrgChart(peopleElement, {
theme: "monica",
primaryFields: ["Name", "Title", "Department", "Office", "Email", "Phone", "Mobile"],
photoFields: ["Image"],
enableEdit: false,
enableSearch: true,
enableMove: true,
enablePrint: false,
enableZoomOnNodeDoubleClick: true,
layout: getOrgChart.MIXED_HIERARCHY_RIGHT_LINKS,
expandToLevel: 2,
dataSource: source
Fixed in version 2.5.2
This issue is caused in the following getOrgChart function:
The missing commas cause JSON to fail when parsing the array. Replace the function with the following code and it should work.