How to use the vega-tooltip/build/vega-tooltip function in vega-tooltip

To help you get started, we’ve selected a few vega-tooltip examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github datadotworld / chart-builder / src / components / VegaLiteEmbed.js View on Github external
try {
      const vgSpec = vl.compile(spec).spec

      const runtime = vega.parse(vgSpec)

      const view = new vega.View(runtime, {
        loader,
        logLevel,
        renderer
      })
        .initialize(this.nodeRef.current)
        .change('source', vega.changeset().insert(data))

      try {
        VegaTooltip(view)
      } catch (e) {}

      this.view = view
      await view.runAsync()
      onViewRender && onViewRender(view)
    } catch (e) {}
  }

vega-tooltip

A tooltip plugin for Vega-Lite and Vega visualizations.

BSD-3-Clause
Latest version published 1 month ago

Package Health Score

89 / 100
Full package analysis