getorgchart

Style node of Dabeng's OrgChart library

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-11 10:38:40
问题 I am using the Dabeng Orgchart library (great library, btw), but I would like to customize the nodes, specifically creating a diamond instead of the squares they have in most examples. I have seen the createNode method, and I have found various css for creating a diamond but I cant figure out how to integrate it in dabeng org chart. What I want to do is display a diamond if some conditions are met, and the default square shapes if others are met. I have searched around google, but no example

Add scrollbar to svg container

冷暖自知 提交于 2019-12-06 20:16:18
问题 I'm using GetOrgChart to make an organization chart for my company, but I ran into a little problem. If the SVG is bigger than the container we wish to add a scrollbar so you can use it to scroll since this will be a lot faster than dragging it all with your mouse. I've tried this example but was unable to make it work. Is there any way to achieve what I'm looking for? The example below is way smaller than our actual chart, but it should be good enough to represent the problem. var

Add scrollbar to svg container

雨燕双飞 提交于 2019-12-05 02:15:26
I'm using GetOrgChart to make an organization chart for my company, but I ran into a little problem. If the SVG is bigger than the container we wish to add a scrollbar so you can use it to scroll since this will be a lot faster than dragging it all with your mouse. I've tried this example but was unable to make it work. Is there any way to achieve what I'm looking for? The example below is way smaller than our actual chart, but it should be good enough to represent the problem. var peopleElement = document.getElementById("people"); var orgChart = new getOrgChart(peopleElement, { primaryFields: