Reputation: 203
I am using GetOrgChart to show more than 2500 nodes and i am facing lots of problem which i've menstioned below.
see below image
Below is my code
<!DOCTYPE html>
<html>
<head>
<title>OrgChart | First Look</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<script src="getorgchart.js"></script>
<link href="getorgchart.css" rel="stylesheet" />
<style type="text/css">
html, body {
margin: 0px;
padding: 0px;
width: 100%;
height: 100%;
overflow: hidden;
}
#people {
width: 100%;
height: 100%;
}
</style>
</head>
<body>
<div id="people"></div>
<script type="text/javascript">
var peopleElement = document.getElementById("people");
var orgChart = new getOrgChart(peopleElement, {
primaryFields: ["name", "title"],
dataSource: myData
});
</script>
</body>
</html>
Upvotes: 1
Views: 340
Reputation: 696
You can add this option for make a beautiful view.
boxSizeInPercentage: {
minBoxSize: {
width: 5,
height: 5
},
boxSize: {
width: 15,
height: 75
},
maxBoxSize: {
width: 100,
height: 100
}
},
Upvotes: 1