EU Parliament Monitor - API Documentation - v0.7.15
    Preparing search index...

    Module generators/sankey-content

    Generates a Sankey (flow) chart as inline SVG — no JavaScript or third-party libraries required.

    A Sankey diagram visualises quantities flowing from source nodes to target nodes. Node heights and flow-path widths are proportional to the values, making it easy to see dominant flows at a glance.

    Typical usage in articles:

    • Parliamentary flow: political group → document type → legislative outcome
    • Policy flow: policy domain → committee → outcome (adopted/rejected/pending)
    • Budget flow: programme area → committee → spending category

    Interfaces

    SankeyNode
    SankeyFlow
    SankeyConfig

    Type Aliases

    SankeyNodeColor

    Functions

    buildSankeySection