MAIDR JavaScript API
    Preparing search index...
    • Converts a Nivo chart's props into MAIDR data, without a DOM.

      With a scope — a CSS selector prefix naming the element the chart is rendered in, such as '#sales-chart ' — the layers whose marks Nivo stamps with an attribute of its own (bars, pie arcs, heat map cells, boxes) name them. Lines and scatter nodes carry no such attribute and are only highlighted through useNivoAdapter / <MaidrNivo>, which tag them after render.

      Parameters

      • config: NivoAdapterConfig

        The chart's metadata, type and props

      • Optionalscope: string

        Selector prefix scoping the emitted selectors to one chart

      Returns Maidr

      MaidrData ready to pass to <Maidr data={...}>