MAIDR JavaScript API
    Preparing search index...
    • Where MAIDR puts its copies of a mark plotly drew in a trace's group: after every trace group of the mark's layer.

      Plotly looks its marks up again inside a trace's group whenever it restyles or redraws it, as Plotly.relayout, restyle and react all do, and reads the datum it bound to each: a bar trace styles every path in its g.points, a funnel or waterfall every .point > path, a pie every path.surface, and a scatter trace hands its points out to every path.point in turn. MAIDR's copies of the marks, made when the chart takes focus, carry their tags and classes but no datum. So while a reader was on the chart those calls threw on bars, histograms, funnels, waterfalls and pies, and a scatter trace gave half its points to the hidden copies and drew only the rest.

      After the trace groups no trace's lookup reaches a copy, and the copy is drawn where its mark is, as nothing between the two moves or clips it. A mark under a group that does -- a gauge's arc, a word cloud's word -- keeps its copies beside it.

      Parameters

      • mark: Element

        An element MAIDR copies

      Returns CopyPlace | null

      The end of the mark's layer, or null to leave the copies beside it