Skip to content
Mizen UI
Docs

IntroductionInstallationCLIStylingFoundationsThemingCompositionIntegrationsAccessibilityFor agents

useCopyToClipboard

AccordionAspect RatioCardCollapsibleFrameGridGroupInlineScroll AreaSectionSeparatorSpacerStack

BlockquoteCitationCodeHeadingKbdLabelLinkTextVisually Hidden

ButtonButton GroupToggleToggle groupToolbar

CalendarCheckboxCheckbox groupComboboxDate pickerDate range pickerDate-Time InputFieldFieldsetFile UploadFormInputInput groupNumber fieldOTP FieldRadio groupSelectSliderSwitchTextareaTime Input

BreadcrumbMenubarNavigation MenuPaginationSegmented ControlStepperTabs

Alert dialogCommandContext MenuDialogDrawerMenuPopoverPreview CardSheetTooltip

AlertBadgeEmptyError StateMeterProgressSkeletonSpinnerStatus dotToast

Activity FeedAvatarAvatar GroupData TableListMetricOverflow ListProperty ListTableTokenTree

Area ChartBar ListCalendar HeatmapCategory ComparisonChart FrameChart LegendChart TooltipDistributionFunnelHeatmapMetric TrendPart-to-WholeProgress RingsRadar ChartRadial BarsSankey ChartScatter ChartScore GaugeTime Series

Diagram

AttachmentCarouselCode BlockLightboxMarkdownThumbnailTimestamp

Agent ThinkingApproval CardComposerConversationInline CitationMessageMessage ScrollerQuestion CardSourcesStreaming TextSuggestionTask ListTerminalTool Call

On this page

  • Preview
  • Usage
  • Examples
  • Tracked time
  • Recommendations
  • Usage boundaries
  • API reference

Charts

Sankey Chart

Flows from up to six sources to their targets, one ribbon per link, with totals, shares, and a table of flows.

idle

Usage

import { SankeyChart } from "@mizen-labs/ui";

Examples

Tracked time

Five activities flowing into seven apps; ribbons wear their source's hue.

Recommendations

GuidancePractice
Do

Order sources and targets so the largest flows run straight across; that keeps ribbons from crossing.

Usage boundaries

GuidanceBoundary
Scope

Two columns only: every link runs from a source to a target. Split multi-step flows into several charts.

API reference

Public props from @mizen-labs/ui. Use exported prop types for the complete TypeScript contract.

PropTypeDefaultDescription
sources / targetsreadonly { id: string; label: string }[]RequiredLeft and right columns in display order. Up to six sources, each coloring its ribbons; targets use the neutral reference tone.
linksreadonly { source: string; target: string; value: number }[]RequiredNon-negative flows between a known source and target. Node heights are the sums of their links.
aria-label / formatValue / localestring / (value: number) => string / stringRequired / Locale formatting / "en-US"Names the figure and formats node totals and table values; targets show their share of the total.
PreviousRadial BarsNextScatter Chart
Tracked time
86h
Focus 32h
Meetings 18h
Breaks 12h
Admin 14h
Learning 10h
Focus 32h
Meetings 18h
Breaks 12h
Admin 14h
Learning 10h
Browsing · 22%
Writing · 19%
Messaging · 13%
Productivity · 12%
Email · 8%
Video calls · 14%
Everything else · 13%
Browsing · 22%
Writing · 19%
Messaging · 13%
Productivity · 12%
Email · 8%
Video calls · 14%
Everything else · 13%
Tracked time this week, by activity and app flows
FromToValue
FocusBrowsing9h
FocusWriting12h
FocusProductivity7h
FocusEverything else4h
MeetingsWriting2h
MeetingsMessaging4h
MeetingsVideo calls12h
BreaksBrowsing6h
BreaksMessaging3h
BreaksEverything else3h
AdminMessaging4h
AdminProductivity3h
AdminEmail7h
LearningBrowsing4h
LearningWriting2h
LearningEverything else4h
Focus 32h
Meetings 18h
Breaks 12h
Admin 14h
Learning 10h
Focus 32h
Meetings 18h
Breaks 12h
Admin 14h
Learning 10h
Browsing · 22%
Writing · 19%
Messaging · 13%
Productivity · 12%
Email · 8%
Video calls · 14%
Everything else · 13%
Browsing · 22%
Writing · 19%
Messaging · 13%
Productivity · 12%
Email · 8%
Video calls · 14%
Everything else · 13%
Tracked time this week, by activity and app flows
FromToValue
FocusBrowsing9h
FocusWriting12h
FocusProductivity7h
FocusEverything else4h
MeetingsWriting2h
MeetingsMessaging4h
MeetingsVideo calls12h
BreaksBrowsing6h
BreaksMessaging3h
BreaksEverything else3h
AdminMessaging4h
AdminProductivity3h
AdminEmail7h
LearningBrowsing4h
LearningWriting2h
LearningEverything else4h