kapi-tree is a web-based visualization tool that uses the Cytoscape.js library to display the hierarchical structure of a family trees of an organization. It parses data from a Google Sheets CSV and arranges nodes based on pledge class and family lineage.
Check out the live webpage here.
- Cytoscape.js: A graph theory library for visualization and analysis.
- Cytoscape Elk Layout: A Cytoscape.js extension that uses the Elk layout algorithm to arrange nodes in a hierarchical structure.
- PapaParse: A fast CSV parser to load and parse data from Google Sheets.
- Google Sheets: Used as the data source to fetch chapter member information.
- Data Source: Data is fetched from a public Google Sheet in CSV format using PapaParse.
- Cytoscape.js: Nodes and edges are created based on the relationships in the data (e.g., parent-child relationships).
- Elk Layout: The Elk layout algorithm is used to arrange nodes in a hierarchical structure.
To run this project locally:
-
Clone the repository:
git clone https://github.com/yourusername/kapi-tree.git cd kapi-tree -
Open the
index.htmlfile in your browser.