vega-embed
    Preparing search index...

    Function default

    • Embed a Vega visualization component in a web page. This function returns a promise.

      Parameters

      • el: string | HTMLElement

        DOM element in which to place component (DOM node or CSS selector).

      • spec: string | VisualizationSpec

        String : A URL string from which to load the Vega specification. Object : The Vega/Vega-Lite specification as a parsed JSON object.

      • opts: EmbedOptions = {}

        A JavaScript object containing options for embedding.

      Returns Promise<Result>