Skip to Content
Cytoscape.jsOverview

Cytoscape.js

Learn graph data, layouts, styles, events and algorithms in Cytoscape.js. Each chapter links to standalone vanilla JavaScript and React demos, with Preview and Code views.

No prior Cytocausal knowledge is required. Follow the seven chapters in order, or open the topic you need.

ChapterWhat you will learn
1. Setup & initializationCreate an instance, size its container and configure it
2. Nodes & edgesAdd, update, select and traverse elements
3. Layouts & viewportChoose layouts, zoom and pan
4. Styles & animationApply selectors, style rules and animation
5. Interactions & eventsHandle taps, dragging and event cleanup
6. Graph algorithmsExplore paths, centrality and connectivity
7. Import & exportRead data and export JSON, CSV and images

Use with Cytocausal

When extending the causal graph components, read Extend with Cytoscape.js for dataset, style and interaction integration.

Last updated on