Charts / React engineering charts / Maps & networks
Network graph
A service call graph laid out by a seeded force simulation, with communities coloured and hubs sized by degree, to show who depends on whom.
React component NetworkGraph, data through props. Data placed on a map, or things wired to and weighed against each other. Tags: network, graph, force-directed, nodes, edges, communities, dependency.
Install
npm i klar-charts
import 'klar-charts/styles.css'
import { ThemeScope, NetworkGraph } from 'klar-charts'
# or copy the source:
npx shadcn@latest add https://klar.run/r/tech-network.json
Usage
<NetworkGraph nodes={netNodes} links={netLinks} groups={netGroups} height={430} directed format={(v) => v.toFixed(1)} unit="k rps" />
Related network graph charts
- Dotted lane map: A hand-drawn dot world with live ocean lanes between ports, sized by volume and coloured by status.
- US hex-tile map: Revenue by state on equal-sized hex tiles, so small states read as clearly as big ones.
- Service topology: Services as nodes and calls as edges, coloured by health, with traffic flowing along each link.
- ROAS bubbles: Campaign spend against return on a log scale, bubbles sized by revenue and split at the target.
- Flame graph: A sampled call tree as nested bars sized by CPU time, so the hot paths through a service are obvious and one click zooms into any frame.
- Chord diagram: Traffic between eight regions as ribbons whose two ends show each direction, so heavy and lopsided pairs stand out at once.