• Conflate already-projected draw items: merge bars and place x at the group centre.

    Type Parameters

    • T extends { bar: Bar; x: number }

    Parameters

    • items: readonly T[]
    • groupSize: number

    Returns { bar: Bar; x: number }[]