MAIDR Documentation - v4.4.0
    Preparing search index...

    Configuration for gauge and bullet charts. Required when chartType is 'gauge'.

    The value comes from the one data row, but nothing else on a gauge does: a <RadialBarChart> holds a magnitude and an angle, while the reading is "73 out of 100, 7 below target, in the 'ok' band". The range mirrors the chart's own domain and the rest is author knowledge, so all of it arrives here — there is deliberately no default range, since a guessed maximum misreports the one number the chart draws.

    interface GaugeDialConfig {
        min: number;
        max: number;
        target?: number;
        bands?: GaugeBand[];
        label?: string;
    }
    Index

    Properties

    min: number

    Lower end of the dial — the <PolarAngleAxis domain> floor.

    max: number

    Upper end of the dial — the <PolarAngleAxis domain> ceiling.

    target?: number

    The target marker a bullet chart draws, when it has one.

    bands?: GaugeBand[]

    Qualitative bands, ascending and bounded above only: a band starts where the previous one ended, and the first starts at min.

    label?: string

    What the measure is called. Defaults to the data row's xKey value, the way every other chart type takes its category label from xKey.