Skip to content

Instantly share code, notes, and snippets.

View shunpochang's full-sized avatar

Sean Chang shunpochang

  • Goodwater
  • Bay Area
View GitHub Profile
@shunpochang
shunpochang / README.md
Last active October 10, 2017 20:45
D3 Bi-directional Drag and Zoom Tree on D3 development

This example shows how to interact with D3.js to create a Bi-Directional Tree (a variation of robschmuecker@7880033)

The tree shows the dependencies related to D3 development:

  • The upward branches are the repos that D3 is dependent on, from a direct dependency to further parent files that these repos were dependent on.

  • The lower branches are repos that are dependent on D3, and the children files that are dependent on these repos.

The main logic to pull these dependencies and generating tree data is in my GitHub repo, where package.json and bower.json files (to include both NPM and Bower installation) are crawled to get the top matching libraries.