Riksdagsmonitor Intelligence Platform โ€” API Documentation - v1.0.47
    Preparing search index...

    Interface ChartDatasetSpec

    Generic Chart.js dataset spec used across dashboards (line/bar/radar/scatter).

    interface ChartDatasetSpec {
    ย ย ย ย label?: string;
    ย ย ย ย data: readonly (number | { x: string | number | Date; y: number })[];
    ย ย ย ย backgroundColor?: string | readonly string[];
    ย ย ย ย borderColor?: string | readonly string[];
    ย ย ย ย borderWidth?: number;
    ย ย ย ย pointRadius?: number;
    ย ย ย ย pointHoverRadius?: number;
    ย ย ย ย pointBackgroundColor?: string | readonly string[];
    ย ย ย ย pointBorderColor?: string | readonly string[];
    ย ย ย ย fill?: boolean;
    ย ย ย ย tension?: number;
    ย ย ย ย [key: string]: unknown;
    }

    Indexable

    • [key: string]: unknown

      Allow chart-type-specific extensions without resorting to any.

    Index
    label?: string
    data: readonly (number | { x: string | number | Date; y: number })[]
    backgroundColor?: string | readonly string[]
    borderColor?: string | readonly string[]
    borderWidth?: number
    pointRadius?: number
    pointHoverRadius?: number
    pointBackgroundColor?: string | readonly string[]
    pointBorderColor?: string | readonly string[]
    fill?: boolean
    tension?: number