Examples
Choose a Cytocausal example for your application task, or a standalone Cytoscape.js demo for learning native graph APIs.
Build with Cytocausal
These examples share a fictional garden dataset and demonstrate framework components and data analysis. Each page includes a live example and its source.
| Task | Example | Related guide |
|---|---|---|
| Start a complete interface from a dataset | Complete workspace | Getting started |
| Arrange the graph and sidebar yourself | Compose panels | Compose an interface |
| Compare a renamed node across snapshots | Compare versions | Stable layouts |
| Query paths and loops without a renderer | Analysis without a renderer | Causal analysis |
Run npm run dev:docs in the source workspace, or copy an example with data.ts and garden.json into the starter. The component implementations live in apps/docs/src/components/examples/ and use the workspace dependencies.
Learn native Cytoscape.js
Each native demo has its own page and chapter navigation. Use Preview to interact with the graph, then Code to load an actual source file. Select files, copy the code or open a source file directly. Switching Preview and Code preserves graph state.
| Topic | Tutorial | Standalone demos |
|---|---|---|
| Setup and initialisation | Read guide | Vanilla JavaScript · React |
| Nodes and edges | Read guide | Vanilla JavaScript · React |
| Layouts and viewport | Read guide | Vanilla JavaScript · React |
| Styles and animation | Read guide | Vanilla JavaScript · React |
| Interactions and events | Read guide | Vanilla JavaScript · React |
| Graph algorithms | Read guide | Vanilla JavaScript · React |
| Import and export | Read guide | Vanilla JavaScript · React |
The native demos teach the underlying APIs. To apply them inside the causal graph components, read Extend with Cytoscape.js.