income-sankey
Generate interactive Sankey diagrams visualizing income statement flow from revenue to net income. TRIGGER when: Sankey diagram, income statement visualization, financial flow chart. DO NOT USE for: balance sheet, cash flow, or non-financial charts.
Creator
mingyang
Created time
Jul 14, 2026
Last update
Jul 21, 2026
Version
V2
Usage
5 Installs · 10 Runs
How it works
Income Statement Sankey Diagram
Generate a self-contained interactive HTML Sankey diagram visualizing a company's income statement — from revenue down to net income.
Step 1: Fetch Financial Data
Tools: bash (driven command)
-
Fetch the income statement (default to most recent quarter if user doesn't specify):
For Y/Y comparison, also fetch prior year's same period:
Then pick the matching quarter from the previous year.
-
Revenue segment breakdown (REQUIRED — exhaust all sources before falling back to single Total Revenue):
Try these sources in order until segment data is obtained:
Source A: driven product segmentation
Source B: driven geographic segmentation (if product segments unavailable)
Source C: Full filing or earnings release through Driven Use
driven helpto locate the current