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.
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 throughuseNivoAdapter/<MaidrNivo>, which tag them after render.