EU Parliament Monitor - API Documentation - v0.7.19
    Preparing search index...
    • Build a trend analytics panel as a self-contained HTML section. Renders a line (sparkline) chart (Chart.js) for activity levels over time with week-over-week / month-over-month change indicators and a <noscript> comparison table.

      Returns an empty string when trend is null/undefined or has no metric data points.

      Parameters

      • trend: TrendAnalytics | null | undefined

        Trend analytics data

      • panelIndex: number

        Index used for unique canvas IDs

      • lang: string = 'en'

        BCP 47 language code for localized labels

      Returns string

      HTML string for the trend panel or empty string