Skip to main content
100%

Vega-Lite API Temperature Area Chart

✓ Published1🌍 Public
NNelson M
Last edited Nov 18, 2023
Created on Nov 18, 2023

This example visualizes weekly temperature data for San Francisco as a smooth area chart, with the y-axis mapping temperature values and the x-axis representing timestamps. It demonstrates the Vega-Lite API by programmatically constructing a chart specification using its method chaining, including `vl.markArea`, `vl.x().fieldT`, and `vl.y().fieldQ`. The visualization is rendered via Vega and Vega-Lite, with data loaded using d3.csv, and uses custom axis styling from a shared config plus a tooltip handler from Vega Tooltip.

AI-generated description

A visualization constructed using the vega-lite-api.

MIT Licensed

Similar vizzes