EU Parliament Monitor — API Documentation - v0.8.40
    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"
            | "polarArea"
            | "scatter"
            | "bubble";
        title?: string;
        data: ChartData;
        options?: Record<string, unknown>;
    }
    Index

    Properties

    type:
        | "bar"
        | "line"
        | "pie"
        | "doughnut"
        | "radar"
        | "polarArea"
        | "scatter"
        | "bubble"

    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 (scales, plugins, annotation, etc.)