MAIDR JavaScript API
    Preparing search index...

    Function resolveNivoSelectors

    • Resolves the selectors of every layer of one chart against its rendered DOM, tagging the marks Nivo does not stamp itself.

      A layer whose marks are not all there yet — a Responsive* chart renders nothing until it has measured its parent — gets no selectors; the caller tries again once the DOM changes.

      Parameters

      • container: HTMLElement

        The element the chart is rendered in

      • layers: NivoLayerInfo[]

        The chart's extracted layers

      • scope: string

        The chart's scope prefix, e.g. '#chart '

      Returns (
          | string
          | string[]
          | CandlestickSelector
          | (string | null)[][]
          | BoxSelector[]
          | undefined
      )[]

      Each layer's selectors, by index; undefined where unresolved