vega-lite JavaScript API browser example with vegaEmbed
This example demonstrates linked brushing and selection between a scatterplot of daily maximum temperature and precipitation and a bar chart of weather-type counts, using Seattle weather data. It shows how brushing the time axis filters the bar chart, while clicking weather categories filters the scatterplot. The visualization is built with the vega-lite-api JavaScript wrapper to generate the Vega-Lite specification programmatically, then rendered via vegaEmbed. The code defines interval and multi-selection encodings, custom color scales, and filters to synchronize both views interactively.
AI-generated descriptionConverted 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 <a href='http://bl.ocks.org/john-guerra/'>john-guerra</a>'s block: <a href='http://bl.ocks.org/john-guerra/d6f1c4fc6473f78dd1b900145f8b63df'>vega-lite JavaScript API browser example</a>
forked from <a href='http://bl.ocks.org/john-guerra/'>john-guerra</a>'s block: <a href='http://bl.ocks.org/john-guerra/a90b26fc3c99a925b05d51a479c16af2'>vega-lite JavaScript API browser example with vegaEmbed</a>
forked from <a href='http://bl.ocks.org/EE2dev/'>EE2dev</a>'s block: <a href='http://bl.ocks.org/EE2dev/93076c6db5ed91ba2275767ba6809476'>vega-lite JavaScript API browser example with vegaEmbed</a>
forked from <a href='http://bl.ocks.org/EE2dev/'>EE2dev</a>'s block: <a href='http://bl.ocks.org/EE2dev/9e9bf25ead1d3d71fae033ca177ce9a9'>vega-lite JavaScript API browser example with vegaEmbed</a>