MAIDR Documentation - v4.4.0
    Preparing search index...
    • Polar selectors: one per series, which is what a line-shaped layer needs.

      LineTrace pairs its series with its selectors by position, so a single selector covering the whole layer would resolve to nothing on a chart with more than one series. Plotly gives every scatter group a trace{uid} compound class, so each series can be named directly; barpolar's groups carry no uid and are counted within the subplot's g.barlayer instead.

      A uid that is not a usable class name — plotly generates safe ones, but an author may set uid to anything — withdraws the whole list rather than emitting a selector that would silently match nothing.

      Parameters

      • series: PolarSeries[]

        The layer's series, each with its position among the subplot's traces

      • subplotId: string

        The polar subplot they are drawn on (polar, polar2, …)

      • isBar: boolean

        Whether these are barpolar traces rather than scatterpolar

      Returns string[] | undefined

      One selector per series, or undefined when none can be built