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

    Function finalizeChart

    • The same, for a chart one bind reads as more than one layer.

      A violin is the case that exists: its KDE curves and its box summary are two layers over one set of marks, navigated as one chart, so they belong in one subplot rather than in two binds the caller has to place side by side.

      The first entry is the layer the binder is named for and becomes D3BinderResult.layer; every entry is in layers. Legends are concatenated in order, since a subplot carries one list.

      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 layers, in the order the subplot should carry them.

      Returns D3BinderResult

      The standard D3BinderResult.

      When built is empty, which is a binder bug rather than a chart the adapter could not read — a binder with nothing to emit throws first.