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

    Interface ChartConfig

    Chart configuration for dashboard visualizations. Generates a <canvas> element with embedded JSON configuration that can be hydrated by Chart.js on the client side.

    interface ChartConfig {
        type: "bar" | "line" | "pie" | "doughnut" | "radar";
        title?: string;
        data: ChartData;
        options?: Record<string, unknown>;
    }
    Index

    Properties

    type: "bar" | "line" | "pie" | "doughnut" | "radar"

    Chart type — matches Chart.js chart types

    title?: string

    Chart title displayed above the chart

    data: ChartData

    Chart data (labels + datasets)

    options?: Record<string, unknown>

    Optional Chart.js options override