GitHubGitHub
← All widgets
Monitoring / widget

Flow graph

A live service-flow diagram with typed nodes and edges, automatic layouts, reverse flow, proportional strokes, and a controlled editor.

Live flowReverse flowMissing dataEmptyEditor
FLOW GRAPH

Traffic flow

3 flows
428kW18.4kW36kW428kWSource18.4kWProcess line-12.7kWOutput36kWUtility
<FlowGraphWidget config={flow} liveData={values} />

Installation

pnpm add @chanrg/4ui

Import the stylesheet once, at the root of your app:

import '@chanrg/4ui/styles.css';

Usage

import { FlowGraphWidget } from '@chanrg/4ui';<FlowGraphWidget config={flow} liveData={values} />

API reference

Props

PropTypeDefaultDescription
configFlowGraphConfigstarter graphNormalized graph structure; nodes and edges bind to data through seriesId.
liveDataRecord<string, unknown>{}Caller-owned values keyed by seriesId.

CSS variables

VariableDescription
--4ui-surfacePrimary component surface.
--4ui-textPrimary foreground color.
--4ui-borderDefault control and panel border.

Accessibility

  • The graph exposes a concise node and flow summary; motion disappears under reduced-motion.

Dependencies

Icon, numeric normalization