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

    Module observable-entry

    Observable Plot adapter entry point for MAIDR.

    Re-exports the adapter's API, exposes it as window.maidrObservable for script-tag usage, and — the part that makes a Quarto document work without being edited — starts watching the page for Plot charts as soon as it loads.

    Loading this bundle is the whole integration. A Quarto author adds two script tags in the document header and every {ojs} cell that draws with Observable Plot becomes navigable, including cells that re-run when a viewof input changes.

    Set window.maidrObservableAutoInit = false before the bundle loads to keep the exported functions and skip the watcher, then call initObservablePlots or bindObservablePlot yourself.

    # _quarto.yml — or the document's own YAML header
    format:
    html:
    include-in-header:
    - text: |
    <script src="https://cdn.jsdelivr.net/npm/maidr/dist/maidr.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/maidr/dist/observable.js"></script>

    References

    observablePlotToMaidr → observablePlotToMaidr
    isObservablePlot → isObservablePlot
    MarkDatum → MarkDatum
    ObservablePlotElement → ObservablePlotElement
    ObservablePlotOptions → ObservablePlotOptions
    ObservablePlotResult → ObservablePlotResult
    ObservableWatchOptions → ObservableWatchOptions
    PlotScale → PlotScale
    PlotScales → PlotScales
    QuartoObservableOptions → QuartoObservableOptions
    autoInitObservablePlots → autoInitObservablePlots
    autoInitQuartoObservable → autoInitQuartoObservable
    bindObservablePlot → bindObservablePlot
    initObservablePlots → initObservablePlots
    initQuartoObservable → initQuartoObservable
    stopObservablePlots → stopObservablePlots
    stopQuartoObservable → stopQuartoObservable
    MaidrData → Maidr
    MaidrLayer → MaidrLayer
    MaidrSubplot → MaidrSubplot
    Orientation → Orientation
    TraceType → TraceType