wesnolte / jOrgChart

A jQuery plugin to draw tree-like structures such as OrgCharts.
989 stars 675 forks source link

Add Ability To Only Display Current Branch #50

Open newhavengill opened 10 years ago

newhavengill commented 10 years ago

When displaying a large tree (i.e. many nodes) the usefulness of the app slips a bit. A user has to use the scroll bars to move left/right and up/down.

Currently I have the following set up locally:

  1. Every node is collapsed by default.
  2. IgnoreWhite space is the default (@gdott9, Issue #35, Pull Request pending).
  3. I'm pulling in data via json feed via dataObject (@goldenhooves, Issue #24, Pull Request pending). This json was a little funky at first but I have it working.

The 3 steps above have help considerably but how can I improve the user experience if I have many nodes? I think the easiest solution would be to only allow the nodes of the current branch to be expanded. All other nodes will collapse. It's not perfect but I think at the very least, having the ability to only display the current branch is a nice feature.

selvamani-subramani commented 10 years ago

Yeah you can add many nodes from some other list. https://github.com/sselvamani22/jOrgChart

dabeng commented 8 years ago

Hi @newhavengill , you can use OrgChart plugin to improve the usability. It provides on-demand loading data, expand/collapse the nodes with 4 direction buttons and allows users to pan and zoomin/zoomout chart. Good luck!