MAIDR JavaScript API
    Preparing search index...

    Function arrangeObjects

    • The list a sort and a filter make of a chart's objects.

      The sort is stable: objects that tie keep the chart's own order, so a list sorted by a measure many objects share still reads in a predictable order. An object whose measure is unknown sorts after every known one in both directions -- "lowest first" should not open on the objects that have no value at all.

      Parameters

      • objects: readonly ChartObject[]

        Every object, in the chart's order

      • order: ObjectOrder

        How to sort them

      • filter: string | null

        The id of the filter to apply, or null for all of them

      Returns ChartObject[]

      The objects to show, in the order to show them