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

    Interface DumbbellPoint

    One row of a dumbbell chart: a category and the pair of values compared at it.

    The pair is what the chart is for -- before and after, two groups, two years -- and the segment drawn between the dots is the comparison. Which of the two is larger is not fixed: a dumbbell showing a decline draws end below start, and a chart usually contains both directions at once.

    The change between them is deliberately absent, and derived instead. A drawn segment cannot disagree with the dots it joins, so an authored delta is a second source of truth for a quantity that already has one -- and the one a reader would be told is the one the chart did not draw.

    interface DumbbellPoint {
        x: string | number;
        start: number;
        end: number;
    }
    Index

    Properties

    Properties

    x: string | number

    Position along the category axis.

    start: number

    The value the segment starts at -- the earlier, or the reference, one.

    end: number

    The value the segment ends at.