MAIDR Documentation - v4.4.0
    Preparing search index...
    • Finds the node carrying Plot's scale function.

      Plot.plot() attaches scale to whatever it returns. That is the <svg> for a bare plot, but the <figure> when the plot has a title, subtitle, caption, or legend — and in the wrapped case the inner <svg> carries nothing. Callers hold either one depending on how they found the chart, so this looks in both directions.

      Parameters

      • element: Element

        Any element of the plot.

      Returns ObservablePlotElement | null

      The node whose scale is callable, or null when there is none.