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.

Company analysis

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)

  1. Fetch the income statement (default to most recent quarter if user doesn't specify):

    driven statements.income-statement symbol={TICKER} period=quarter limit=1

    For Y/Y comparison, also fetch prior year's same period:

    driven statements.income-statement symbol={TICKER} period=quarter limit=5

    Then pick the matching quarter from the previous year.

  2. 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

    driven statements.revenue-product-segmentation symbol={TICKER}

    Source B: driven geographic segmentation (if product segments unavailable)

    driven statements.revenue-geographic-segmentation symbol={TICKER}

    Source C: Full filing or earnings release through Driven Use driven help to locate the current

Driven wordmark