Skip to content
wdj

SankeyChart

Implemented Data Visualization

Server-built flow charts with weighted links and themed labels.

Kumo reference: kumo-ui.com/charts/sankey/

Presentation commands show demo feedback. Read the interaction guide to connect real actions.

Basic

Show template
{% load wdj %}
<div class="w-full">{% include "wdj/components/chart.html" with option=sankey_basic_option label="Basic flow" height=350 only %}</div>

Traffic flow

Show template
{% load wdj %}
<div class="w-full">{% include "wdj/components/chart.html" with option=sankey_traffic_option label="Traffic flow flow" height=350 only %}</div>

Vertical

Show template
{% load wdj %}
<div class="w-full">{% include "wdj/components/chart.html" with option=sankey_vertical_option label="Vertical flow" height=350 only %}</div>

Wide nodes

Show template
{% load wdj %}
<div class="w-full">{% include "wdj/components/chart.html" with option=sankey_wide_option label="Wide nodes flow" height=350 only %}</div>

Spaced nodes

Show template
{% load wdj %}
<div class="w-full">{% include "wdj/components/chart.html" with option=sankey_spaced_option label="Spaced nodes flow" height=350 only %}</div>

Colored nodes

Show template
{% load wdj %}
<div class="w-full">{% include "wdj/components/chart.html" with option=sankey_colored_option label="Colored nodes flow" height=350 only %}</div>

Without labels

Show template
{% load wdj %}
<div class="w-full">{% include "wdj/components/chart.html" with option=sankey_no_labels_option label="Without labels flow" height=350 only %}</div>

Loading

Show template
{% load wdj %}
<div class="w-full">{% include "wdj/components/chart.html" with loading=True label="Loading flow" height=350 only %}</div>

Empty

No chart data

Data will appear when observations are available.

Show template
{% load wdj %}
<div class="w-full">{% include "wdj/components/chart.html" with option=sankey_empty_option label="No flow data" height=350 empty=True only %}</div>

Rich tooltip

Show template
{% load wdj %}
{% include "wdj/components/chart.html" with option=audit_sankey_tooltip label="Traffic flow with formatted tooltips" only %}

Interactive node selection

Show template
{% load wdj %}
<div x-data="{ selected: '' }" @wdj:chart-click="selected = $event.detail.name">{% include "wdj/components/chart.html" with option=sankey_traffic_option label="Select a traffic node" only %}<p class="text-base" aria-live="polite" x-text="selected ? 'Selected: ' + selected : 'Select a node or connection'"></p></div>

Drilldown

Origin breakdown: 32 successful requests and 6 errors.

Show template
{% load wdj %}
<div x-data="{ detail: false }" @wdj:chart-click="detail = true"><div x-show="!detail">{% include "wdj/components/chart.html" with option=sankey_traffic_option label="Select traffic to inspect details" only %}</div><div x-cloak x-show="detail"><p class="text-base">Origin breakdown: 32 successful requests and 6 errors.</p>{% include "wdj/components/chart.html" with option=audit_sankey_detail label="Origin request details" only %}<button type="button" class="h-9 rounded-lg bg-kumo-fill px-3 text-base" @click="detail = false">Back to overview</button></div></div>

Inline labels

Show template
{% load wdj %}
{% include "wdj/components/chart.html" with option=audit_sankey_inline label="Traffic flow with inline labels" only %}

API Reference

Prop Type Default Description
dict unset Option; pass the documented value shown in the examples.
number 288 (Chart) Height; pass the documented value shown in the examples.
string unset Visible accessible label. Supply an explicit aria-label via attrs when the control is bare.
bool False Loading; pass the documented value shown in the examples.
bool False Empty; pass the documented value shown in the examples.
string unset Stable unique DOM ID; important for HTMX targets and focus restoration.
dict {} Dictionary of escaped native, HTMX or Alpine attributes. Literal Tailwind classes only.
string "" Class; pass the documented value shown in the examples.

Accessibility notes

Every interactive component keeps real semantics and keyboard support: native controls where possible, ARIA only where necessary, and a visible focus ring. See the Accessibility page for the shared contract.

Read the accessibility contract

Components

Components overview
AutocompleteFree-form input with local or HTMX-filtered suggestions.
BadgeSolid, tinted, outline and dot status labels.
BannerInline message bar with variants and optional action.
BreadcrumbsTrail navigation in two sizes.
ButtonVariants, sizes, shapes, icons and loading state.
ButtonGroupJoins a small set of tightly-coupled buttons into a single control (split buttons).
CheckboxSingle checkbox and indeterminate state.
ClipboardTextRead-only text field with a one-click copy-to-clipboard button.
Code / CodeHighlightedEscaped Pygments grammar highlighting, multiline tokens, line numbers, highlighted lines and localized copying.
CollapsibleComposable disclosure component for showing and hiding content.
Combobox / AutocompleteKumo-styled input/button triggers, search inside the popup, grouped local choices and debounced HTMX search.
CommandPaletteAccessible spotlight search overlay with Cmd+K keyboard shortcut.
DatePickerKumo-styled date and datetime popups; inline single, multiple and range calendars with bounds/presets.
DateRangePickerStyled popup or inline range calendar with bounds, presets and separately named form values.
DialogNative <dialog> modal with focus management.
DrawerEdge-anchored modal panel. LayerDialog has its own layered component.
DropdownMenuNative details menu with delegated keyboard navigation and dismissal.
EmptyEmpty-state placeholder with icon and action.
FieldLabel + description + error wrapper. Built into each control.
FlowDirected diagrams with branches, SVG connectors, custom anchors and responsive local scrolling.
GridResponsive CSS grid layout container with preset column configurations.
InlineCopyTextCompact borderless copy control for IDs and short values.
InputText field with label, description, leading/trailing icons.
InputAreaMulti-line textarea with auto-resize option.
InputGroupInput field with seamless prefix, suffix, and addon attachments.
LabelForm field label, optional marker and tooltip.
LayerCardCompound surface card with distinct primary and secondary layers.
LayerDialogLayered native modal with actions, forms, nested dialogs and pending states.
LinkInline, current and plain text links.
LoaderAnimated spinner in three sizes.
MenuBarCompact view selector using native radio semantics.
MeterProgress bar showing a measured value within a known range.
PaginationA page navigation component for navigating through paginated content.
PopoverAnchored popup with interactive content.
RadioRadio group, vertical and horizontal.
SelectKumo-styled Alpine dropdown with groups, rich options and multiple selection; native form values and fallback.
SensitiveInputPassword/secret input with reveal toggle and copy button.
SeparatorHorizontal / vertical rules with optional label.
SidebarRecursive navigation groups, account/zone views, search, loading, resize and full-screen mobile breadcrumbs.
SkeletonShimmer placeholder.
SliderInset single/range selection with vertical grips, value badges, endpoint labels and native keyboard/form behavior.
SurfaceBordered surface panel with header slot.
SwitchOn/off toggle in three sizes.
TableServer-driven table: sort, filter, select and paginate the full dataset.
Table of contentsPage section navigation tree with active link indicator.
TabsSegmented and underline tabs with a sliding indicator, responsive overflow and local Alpine or URL/HTMX state.
TagInputMulti-value badge input for tags and recipients.
TextHeading, body, secondary, success, error and mono text.
ToastyExpandable notification stack with variants, paused expiry and a live region.
ToolbarCompact grouped controls with shared borders, composed filters and keyboard arrow navigation.
TooltipHover and focus tooltip with grouped delays, Escape dismissal and viewport bounds.
↑ ↓ Navigate ↵ Select