Installation
Usage
The Knowledge Graph component creates interactive network visualizations perfect for displaying relationships between entities, knowledge bases, or any connected data.Features
Interactive Controls
The graph supports multiple interaction methods:- Zoom & Pan: Mouse wheel to zoom, click and drag to pan
- Node Dragging: Drag individual nodes to reposition them
- Tooltips: Hover over nodes to see details
- Click Events: Handle node clicks for navigation or detail views
Export Functionality
Use the ref handle to export graphs:Center Node
Pin important nodes to the center:Custom Styling
Props
Node Type
Link Type
Accessibility
- Fully keyboard accessible via drag interactions
- Pan and zoom are mouse/trackpad accessible
- Node colors are automatically generated with sufficient contrast
- Tooltips provide text alternatives for visual relationships