https://github.com/robinl/d3_orgchart_yammer
Interactive, searchable organiastion charts in d3.js
https://github.com/robinl/d3_orgchart_yammer
Last synced: 8 months ago
JSON representation
Interactive, searchable organiastion charts in d3.js
- Host: GitHub
- URL: https://github.com/robinl/d3_orgchart_yammer
- Owner: RobinL
- License: mit
- Created: 2015-11-16T14:42:00.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2018-03-11T08:46:41.000Z (over 8 years ago)
- Last Synced: 2025-04-09T07:44:12.416Z (about 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 1.63 MB
- Stars: 21
- Watchers: 2
- Forks: 12
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
##Interactive, searchable d3 organisation charts
This repo contains all the code you need to create an interactive, searchable organisational chart.
It was built to work with data from the Yammer API, but has since been adapted to work with data from any source, provided in csv format.
Works in modern browsers.
You can find a demo [here](http://robinl.github.io/d3_orgchart_yammer/website/ "here") that uses faked data. If you pull data from the Yammer API using the provided Python scripts, it will automatically pick up profile pics, contact details etc..
###Instructions to get up and running:
####If you want to use real Yammer data from your organisation:
1. Grab your Yammer authentication here:
This is a string that looks something like :"Bearer 000000-test"
Insert it into "Get data from Yammer.ipynb" and run.
These scripts download quite a lot of data from Yammer and will take some time to run.
The output is a json file in `/website/data/orgchart_data.json`
This will overwrite the existing file, which is an example that uses fake data.
2. Run "Process Yammer data.ipynb"
#####If you do not want to use data from Yammer
cd to the 'website' directory and type `python -m SimpleHTTPServer` and navigate to `http://127.0.0.1:8000/` in your web browser.
This will use the faked data at `/website/data/random_data_flat_file.csv`
If you want to use your own data, you just need to provide a csv in the same format as this file.
For a very simple example, see `/website/tests/6_nodes_no_errors.csv`
If you want to create some new faked data, use `Data faker (for testing purposes).ipynb`