Skip to main content
100%

11.-Vega-Lite API 2

✓ Published0🌍 Public
JJorge MataH
Last edited Oct 14, 2021
Created on Oct 14, 2021

This example visualizes San Francisco weekly temperature data as a single smooth area chart, with time on the x-axis and temperature on the y-axis. Built using the Vega-Lite API 2, the chart leverages `vl.markArea`, `vl.x().fieldT`, and `vl.y().fieldQ` to encode temporal and quantitative fields. It pulls data via `d3.csv` from a gist URL, registers Vega and Vega-Lite, and renders interactively with a tooltip handler, while custom axis and label styling improve readability.

AI-generated description

A visualization constructed using the vega-lite-api.

MIT Licensed

Similar vizzes