EU Parliament Monitor — API Documentation - v0.8.40
    Preparing search index...

    Interface ChartDataset

    A single dataset within a chart. For bar/line/pie/doughnut/radar/polarArea charts, data is number[]. For scatter charts, data is ScatterPoint[]. For bubble charts, data is BubblePoint[]. Maps to Chart.js dataset configuration.

    interface ChartDataset {
        label: string;
        data: readonly number[] | readonly ScatterPoint[] | readonly BubblePoint[];
        backgroundColor?: string | readonly string[];
        borderColor?: string | readonly string[];
    }
    Index

    Properties

    label: string

    Dataset label (shown in legend)

    data: readonly number[] | readonly ScatterPoint[] | readonly BubblePoint[]

    Data points — numbers for most chart types, point objects for scatter/bubble

    backgroundColor?: string | readonly string[]

    Background color(s) — single color or array for per-point colors

    borderColor?: string | readonly string[]

    Border color(s) — single color or array for per-point colors