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

    Interface DashboardMetric

    A single key metric displayed as a card in a dashboard.

    interface DashboardMetric {
        label: string;
        value: string;
        change?: number;
        trend?: "stable" | "up" | "down";
        unit?: string;
    }
    Index

    Properties

    label: string

    Human-readable label for the metric

    value: string

    Formatted display value (e.g. "85%", "1,234", "€2.5M")

    change?: number

    Optional percentage change from previous period

    trend?: "stable" | "up" | "down"

    Optional trend direction

    unit?: string

    Optional unit suffix (e.g. "%", "MEPs", "votes")