kor TürkçeGitHub

Flow

Shows quantities moving through steps in a process.

kor/ui/FlowSource

When to use

  • Show where incoming work is completed, redirected or held up.

Examples

Connect two steps

Loading the example

<k:Flow height="200" unit="orders" live="false" label="Order flow">
	<k:nodes>
		<k:FlowNode key="received" label="Received" value="18"/>
		<k:FlowNode key="packed" label="Packed" column="1" value="18"/>
	</k:nodes>
	<k:links><k:FlowLink source="received" target="packed" value="18"/></k:links>
</k:Flow>

Inspect a bottleneck

Loading the example

<k:Flow height="280" unit="orders" label="Dispatch flow" select=".onSelect">
	<k:nodes>
		<k:FlowNode key="packed" label="Packed" value="30"/>
		<k:FlowNode key="sent" label="Dispatched" column="1" value="24"/>
		<k:FlowNode key="waiting" label="Waiting" column="1" value="6" state="wait" note="Carrier pending"/>
	</k:nodes>
	<k:links>
		<k:FlowLink source="packed" target="sent" value="24"/>
		<k:FlowLink source="packed" target="waiting" value="6"/>
	</k:links>
</k:Flow>

API

Properties

NameTypeDefaultDescription
heightint340Height in pixels
unitstringUnit of measure
selectedKeystringKey of the selected step
livebooleantrueWhether to animate the particles
labelstringAccessible name

Aggregations

NameTypeDescription
nodesFlowNode[]Process steps
linksFlowLink[]Connections between steps

Events

NameTypeDescription
selectkey: stringA step was selected. An empty key clears selection

FlowNode

A step in a process flow.

Properties

NameTypeDefaultDescription
keystringStep key
labelstringLabel
notestringSecondary note
columnint0Column index from the left
valuefloat0Quantity at the step
statestringnonenone, wait or danger

A quantity flowing between two process steps.

Properties

NameTypeDefaultDescription
sourcestringSource step key
targetstringDestination step key
valuefloat0Quantity

Related

TrendStat