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

    Function buildStakeholderScorecardPanel

    • Build a stakeholder impact scorecard panel as a self-contained HTML section. Renders a color-coded grid where each cell shows a stakeholder's impact score and direction, with a <noscript> fallback table.

      Returns an empty string when stakeholders is null/undefined or empty.

      Parameters

      • stakeholders: readonly StakeholderMetric[] | null | undefined

        Stakeholder metric data

      • panelIndex: number

        Index used for unique IDs

      • lang: string = 'en'

        BCP 47 language code for localized labels

      Returns string

      HTML string for the scorecard panel or empty string