MAIDR Documentation - v3.73.0
    Preparing search index...

    Function finalizeSingleChart

    • Wraps a built layer into the single-chart (1x1) Maidr structure and applies it to the SVG. This is the tail every single-chart binder shares; the multi-panel binders in binders/subplots.ts assemble their own grid instead and call applyMaidrData directly.

      Parameters

      • svg: Element

        The SVG the binder was invoked on.

      • config: D3BinderConfig

        The user's binder config (source of figure-level fields).

      • built: D3BuiltLayer

        The layer (and optional legend) produced by the builder core.

      Returns D3BinderResult

      The standard D3BinderResult.