MAIDR Documentation - v4.4.0
    Preparing search index...

    Interface ObservablePlotElement

    The element Plot.plot() returns: an <svg>, or a <figure> wrapping one.

    scale and legend are own properties of that element. They survive in the DOM — Quarto inserts the very node Plot returned — but they do not survive serialization, so an adapter that finds a plot in a static HTML file gets the markup without them. Both are therefore optional here, and the adapter falls back to reading the rendered axis ticks when scale is gone.

    interface ObservablePlotElement {
        scale?: (name: string) => PlotScale | undefined;
        legend?: (name: string, options?: unknown) => Element | undefined;
    }

    Hierarchy

    • Element
      • ObservablePlotElement
    Index

    Properties

    Properties

    scale?: (name: string) => PlotScale | undefined
    legend?: (name: string, options?: unknown) => Element | undefined