Skip to main content
100%

Iterating Fast with Vega Lite API

✓ Published0🌍 Public
JJohn Huang
Last edited May 13, 2021
Created on May 13, 2021

This example demonstrates rapid iteration with the Vega-Lite API by rendering an area chart of San Francisco weekly temperatures. The visualization maps temperature values over time, displaying the data as a smooth, filled area graph. The code leverages the `vega-lite-api` to build the specification, with `vl.markArea()` and `vl.x().fieldT()`/`vl.y().fieldQ()` encoding the temporal and quantitative fields. It uses `vega` and `vega-lite` for rendering, `vega-tooltip` for interactivity, and `d3.csv` to load the dataset from the UCI Machine Learning Repository Auto MPG data source.

AI-generated description

A visualization constructed using the vega-lite-api.

The data shown here comes from the UCI Machine Learning Repository: Auto MPG Data Set, via Gist: Scatter Plot with Menus.

MIT Licensed

Similar vizzes