How to use the vega-embed.vega.changeset function in vega-embed

To help you get started, we’ve selected a few vega-embed 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 Kanaries / Rath / packages / frontend / src / components / react-vega.tsx View on Github external
useEffect(() => {
    view && view.change('dataSource', vega.changeset().remove(() => true).insert(dataSource))
    view && view.resize();
    view && view.runAsync();
  }, [view, dataSource])
  return <div></div>

vega-embed

Publish Vega visualizations as embedded web components.

BSD-3-Clause
Latest version published 19 hours ago

Package Health Score

84 / 100
Full package analysis