MAIDR JavaScript API
    Preparing search index...
    • Resolve a MAIDR navigation event into the Chart.js active elements that should be highlighted. Returns an array because one position can cover several marks — a scatter column holds every point sharing an X.

      Parameters

      • layers: MaidrLayer[]

        The layers of the figure

      • maps: TargetMaps

        The prebuilt per-layer lookups

      • layerDatasetIndices: LayerDatasetIndices

        Layer id to the dataset indices backing it

      • layerId: string

        The layer the position belongs to

      • row: number

        The MAIDR row, or -1 when the event carries pointIndices

      • col: number

        The MAIDR column, or -1 when the event carries pointIndices

      • OptionalpointIndices: readonly number[]

        For a point cloud, the layer.data indices to outline

      Returns ChartJsActiveElement[]

      The elements to highlight, empty when nothing resolves