Converted from : https://observablehq.com/@vega/vega-lite-api
A very simple example of how to run the wonderful JavaScript API for vega-lite directly in the browser. This one uses vegaEmbed to render the chart. The key is to use the api to generate the spec, and then vegaEmbed to render it.
Built with blockbuilder.org
forked from john-guerra‘s block: vega-lite JavaScript API browser example
forked from john-guerra‘s block: vega-lite JavaScript API browser example with vegaEmbed
forked from EE2dev‘s block: vega-lite JavaScript API browser example with vegaEmbed