Iterating Fast with Vega Lite API
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 descriptionA 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.