Skip to Content
Choose an example

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.

TaskExampleRelated guide
Start a complete interface from a datasetComplete workspaceGetting started
Arrange the graph and sidebar yourselfCompose panelsCompose an interface
Compare a renamed node across snapshotsCompare versionsStable layouts
Query paths and loops without a rendererAnalysis without a rendererCausal 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.

TopicTutorialStandalone demos
Setup and initialisationRead guideVanilla JavaScript · React
Nodes and edgesRead guideVanilla JavaScript · React
Layouts and viewportRead guideVanilla JavaScript · React
Styles and animationRead guideVanilla JavaScript · React
Interactions and eventsRead guideVanilla JavaScript · React
Graph algorithmsRead guideVanilla JavaScript · React
Import and exportRead guideVanilla JavaScript · React

The native demos teach the underlying APIs. To apply them inside the causal graph components, read Extend with Cytoscape.js.

Last updated on