Connection graph
Node-and-edge relationship graph. Nodes without explicit coordinates are evenly placed around a circle.
Basic usage
Data is passed in via props. Pure SVG rendering, no third-party chart library dependency.
Colors come from the --viz-1..8 tokens and are colorblind-friendly.
Demo source
<CfConnectionGraph ... /> <CfConnectionGraph ... /> Microservice topology
Seven services and seven edges showing a typical gateway dispatch pattern.
Demo source
<CfConnectionGraph :nodes="nodes" :edges="edges" /> <CfConnectionGraph nodes={nodes} edges={edges} /> API
| Prop | Type | Default | Description |
|---|---|---|---|
nodes | GraphNode[] | — | { id, label, x?, y?, colorIndex?, size? }[] |
edges | GraphEdge[] | — | { source, target, weight?, colorIndex? }[] |
showLabels | boolean | true |
反馈与讨论
Connection graph · Discussion