Sankey

Pure SVG Sankey diagrams for visualizing weighted flows between nodes.

Links are required. Nodes are optional and can customize labels, colors, and hover metadata.

Apple FY22 Income Statement

An income-statement style Sankey modeled after the Apple FY22 reference image, with product revenue, services revenue, cost, profit, tax, and expense branches.

Apple FY22 income statement Sankey diagramiPhone $205.5B to Products $316.2B: 205.5MacBook $40.2B to Products $316.2B: 40.2iPad $29.3B to Products $316.2B: 29.3Watch and AirPods $41.2B to Products $316.2B: 41.2Products $316.2B to Revenue $394.3B: 316.2Services $78.2B to Revenue $394.3B: 78.2Revenue $394.3B to Gross profit $170.9B: 170.9Revenue $394.3B to Cost of revenue $223.5B: 223.5Gross profit $170.9B to Operating profit $119.5B: 119.5Gross profit $170.9B to Operating expenses $51.4B: 51.4Operating profit $119.5B to Net profit $99.8B: 99.8Operating profit $119.5B to Tax $19.3B: 19.3Operating expenses $51.4B to Other $0.3B: 0.3Operating expenses $51.4B to R&D $26.3B: 26.3Operating expenses $51.4B to SG&A $25.1B: 25.1Cost of revenue $223.5B to Product costs $201.4B: 201.4Cost of revenue $223.5B to Service costs $22.1B: 22.1iPhone $205.5B: 205.5iPhone$205.5BMacBook $40.2B: 40.2MacBook$40.2BiPad $29.3B: 29.3iPad$29.3BWatch and AirPods $41.2B: 41.2Watch andAirPods$41.2BProducts $316.2B: 316.2Products$316.2BServices $78.2B: 78.2Services$78.2BRevenue $394.3B: 394.4Revenue$394.3BGross profit $170.9B: 170.9Gross profit$170.9BCost of revenue $223.5B: 223.5Cost of revenue$223.5BOperating profit $119.5B: 119.5Operating profit$119.5BNet profit $99.8B: 99.8Net profit$99.8BTax $19.3B: 19.3Tax$19.3BOperating expenses $51.4B: 51.7Operating expenses$51.4BOther $0.3B: 0.3Other$0.3BR&D $26.3B: 26.3R&D$26.3BSG&A $25.1B: 25.1SG&A$25.1BProduct costs $201.4B: 201.4Product costs$201.4BService costs $22.1B: 22.1Service costs$22.1BiPhone $205.5B -> Products $316.2BValue205.5SourceiPhone $205.5BTargetProducts $316.2BYoY7%MacBook $40.2B -> Products $316.2BValue40.2SourceMacBook $40.2BTargetProducts $316.2BYoY14%iPad $29.3B -> Products $316.2BValue29.3SourceiPad $29.3BTargetProducts $316.2BYoY-8%Watch and Air... -> Products $316.2BValue41.2SourceWatch and AirPods $41.2BTargetProducts $316.2BYoY7%Products $316.2B -> Revenue $394.3BValue316.2SourceProducts $316.2BTargetRevenue $394.3BYoY6%Services $78.2B -> Revenue $394.3BValue78.2SourceServices $78.2BTargetRevenue $394.3BYoY14%Revenue $394.3B -> Gross profit ...Value170.9SourceRevenue $394.3BTargetGross profit $170.9BYoY12%Revenue $394.3B -> Cost of reven...Value223.5SourceRevenue $394.3BTargetCost of revenue $223.5BYoY5%Gross profit ... -> Operating pro...Value119.5SourceGross profit $170.9BTargetOperating profit $119.5BYoY10%Gross profit ... -> Operating exp...Value51.4SourceGross profit $170.9BTargetOperating expenses $51.4BYoY17%Operating pro... -> Net profit $9...Value99.8SourceOperating profit $119.5BTargetNet profit $99.8BYoY5%Operating pro... -> Tax $19.3BValue19.3SourceOperating profit $119.5BTargetTax $19.3BYoY33%Operating exp... -> Other $0.3BValue0.3SourceOperating expenses $51.4BTargetOther $0.3BOperating exp... -> R&D $26.3BValue26.3SourceOperating expenses $51.4BTargetR&D $26.3BYoY20%Operating exp... -> SG&A $25.1BValue25.1SourceOperating expenses $51.4BTargetSG&A $25.1BYoY14%Cost of reven... -> Product costs...Value201.4SourceCost of revenue $223.5BTargetProduct costs $201.4BYoY5%Cost of reven... -> Service costs...Value22.1SourceCost of revenue $223.5BTargetService costs $22.1BYoY7%iPhone $205.5BTotal205.5Outgoing205.5YoY7%MacBook $40.2BTotal40.2Outgoing40.2YoY14%iPad $29.3BTotal29.3Outgoing29.3YoY-8%Watch and AirPods $41.2BTotal41.2Outgoing41.2YoY7%Products $316.2BTotal316.2Incoming316.2Outgoing316.2YoY6%Services $78.2BTotal78.2Outgoing78.2YoY14%Revenue $394.3BTotal394.4Incoming394.4Outgoing394.4YoY8%Gross profit $170.9BTotal170.9Incoming170.9Outgoing170.9YoY12%Cost of revenue $223.5BTotal223.5Incoming223.5Outgoing223.5YoY5%Operating profit $119.5BTotal119.5Incoming119.5Outgoing119.1YoY10%Net profit $99.8BTotal99.8Incoming99.8YoY5%Tax $19.3BTotal19.3Incoming19.3YoY33%Operating expenses $51.4BTotal51.7Incoming51.4Outgoing51.7YoY17%Other $0.3BTotal0.3Incoming0.3R&D $26.3BTotal26.3Incoming26.3YoY20%SG&A $25.1BTotal25.1Incoming25.1YoY14%Product costs $201.4BTotal201.4Incoming201.4YoY5%Service costs $22.1BTotal22.1Incoming22.1YoY7%

Automatic Nodes

If a node appears in links but not in the nodes list, the component creates it automatically. Hover nodes and links to inspect metadata.

Revenue Sankey diagramRevenue to Gross profit: 70Revenue to COGS: 30Gross profit to Operating income: 42Gross profit to Operating expenses: 28Operating income to Net income: 25Operating income to Tax: 17Revenue: 100RevenueGross profit: 70Gross profitCOGS: 30COGSOperating income: 42Operating incomeOperating expenses: 28Operating expensesNet income: 25Net incomeTax: 17TaxRevenue -> Gross profitValue70SourceRevenueTargetGross profitMargin70%ConfidenceReviewedRevenue -> COGSValue30SourceRevenueTargetCOGSGross profit -> Operating incomeValue42SourceGross profitTargetOperating incomeQuarterQ4 FY26SourceFinance modelGross profit -> Operating expensesValue28SourceGross profitTargetOperating expensesOperating income -> Net incomeValue25SourceOperating incomeTargetNet incomeOperating income -> TaxValue17SourceOperating incomeTargetTaxRevenueTotal100Outgoing100Gross profitTotal70Incoming70Outgoing70COGSTotal30Incoming30Operating incomeTotal42Incoming42Outgoing42Operating expensesTotal28Incoming28Net incomeTotal25Incoming25TaxTotal17Incoming17

Tooltip Configuration

Hover popovers are enabled by default and can be disabled for compact static exports.

Revenue Sankey diagram with hidden tooltipsRevenue to Gross profit: 70Revenue to COGS: 30Gross profit to Operating income: 42Gross profit to Operating expenses: 28Operating income to Net income: 25Operating income to Tax: 17Revenue: 100RevenueGross profit: 70Gross profitCOGS: 30COGSOperating income: 42Operating incomeOperating expenses: 28Operating expensesNet income: 25Net incomeTax: 17Tax

Explicit Nodes and Colors

Explicit nodes can provide labels and colors. Links can inherit source or target colors.

Energy flow Sankey diagramEnergy to Oil: 15Energy to Natural Gas: 20Energy to Coal: 25Energy to Electricity: 40Oil to Transport: 12Oil to Industry: 3Natural Gas to Electricity: 10Natural Gas to Residential: 5Natural Gas to Commercial: 3Natural Gas to Industry: 2Coal to Electricity: 25Electricity to Residential: 15Electricity to Transport: 5Electricity to Industry: 15Electricity to Commercial: 5Energy: 100EnergyOil: 15OilNatural Gas: 20Natural GasCoal: 25CoalElectricity: 75ElectricityResidential: 20ResidentialTransport: 17TransportIndustry: 20IndustryCommercial: 8CommercialEnergy -> OilValue15SourceEnergyTargetOilUnitTWhYear2026 forecastEnergy -> Natural GasValue20SourceEnergyTargetNatural GasUnitTWhYear2026 forecastEnergy -> CoalValue25SourceEnergyTargetCoalUnitTWhYear2026 forecastEnergy -> ElectricityValue40SourceEnergyTargetElectricityUnitTWhYear2026 forecastOil -> TransportValue12SourceOilTargetTransportOil -> IndustryValue3SourceOilTargetIndustryNatural Gas -> ElectricityValue10SourceNatural GasTargetElectricityNatural Gas -> ResidentialValue5SourceNatural GasTargetResidentialNatural Gas -> CommercialValue3SourceNatural GasTargetCommercialNatural Gas -> IndustryValue2SourceNatural GasTargetIndustryCoal -> ElectricityValue25SourceCoalTargetElectricityElectricity -> ResidentialValue15SourceElectricityTargetResidentialUnitTWhYear2026 forecastElectricity -> TransportValue5SourceElectricityTargetTransportElectricity -> IndustryValue15SourceElectricityTargetIndustryUnitTWhYear2026 forecastElectricity -> CommercialValue5SourceElectricityTargetCommercialEnergyTotal100Outgoing100UnitTWhYear2026 forecastOilTotal15Incoming15Outgoing15Natural GasTotal20Incoming20Outgoing20CoalTotal25Incoming25Outgoing25ElectricityTotal75Incoming75Outgoing40UnitTWhYear2026 forecastResidentialTotal20Incoming20TransportTotal17Incoming17IndustryTotal20Incoming20CommercialTotal8Incoming8

Color Policies and Values

Links support source color, target color, or a concrete CSS color. Values can be shown inline.

Sankey link color policiesSource color to Inherited source: 4040Target color to Inherited target: 3535Custom color to Explicit link: 2525Source color: 40Source colorInherited source: 40Inherited sourceTarget color: 35Target colorInherited target: 35Inherited targetCustom color: 25Custom colorExplicit link: 25Explicit linkSource color -> Inherited sourceValue40SourceSource colorTargetInherited sourceTarget color -> Inherited targetValue35SourceTarget colorTargetInherited targetCustom color -> Explicit linkValue25SourceCustom colorTargetExplicit linkQuarterQ4 FY26SourceFinance modelSource colorTotal40Outgoing40Inherited sourceTotal40Incoming40Target colorTotal35Outgoing35Inherited targetTotal35Incoming35Custom colorTotal25Outgoing25Explicit linkTotal25Incoming25
Open Markdown
ProSankey

Flow and allocation visualization.

Proa UI Pro component source is proprietary and requires an accepted Proa UI Pro Commercial License Agreement. Subject to that agreement, the self-serve license includes the limited commercial Proa framework rights needed to use Proa UI Pro in closed-source products.

View Pro pricing

Sankey source

Source from the Proa UI Pro release licensed to your organization.

Source

Install with the Proa CLIPro access
proa ui add sankey

Requires an active Proa UI Pro license and access to the private component registry.

CLI and registry setup

Search

Type at least 2 characters

Customize

Make it yours

Palette

Radius

Overview
Components
Settings

Build your own

Themed Proa UI surface

Preview
Components52
RecipesTyped
customer-portal