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

    Interface DumbbellData

    A dumbbell chart: its rows, and what its two ends are called.

    An object rather than a bare array -- as HeatmapData and GaugePoint already are -- because the names of the two ends belong to the chart and not to any one row. Repeating them on every point would let a producer emit rows that disagree about what the chart is comparing.

    Those names are the content of the comparison. Announced as "start" and "end", a chart of life expectancy in 1990 against 2020 tells the reader which dot they are on and not which year it is, which is the one thing the legend gives a sighted reader for free.

    interface DumbbellData {
        points: DumbbellPoint[];
        startLabel?: string;
        endLabel?: string;
    }
    Index

    Properties

    points: DumbbellPoint[]

    The rows, in the order the chart draws them.

    startLabel?: string

    What the starting end is called -- "1990", "before", "control".

    endLabel?: string

    What the finishing end is called -- "2020", "after", "treatment".