Skip to main content
100%

Vega-Lite API Template for week temperature

✓ Published1🌍 Public
RRuanzhenglin
Last edited Apr 15, 2021
Created on Apr 15, 2021

This visualization shows a week of temperature readings in San Francisco as a stacked area chart, with temperature mapped to the vertical axis and timestamps along the horizontal axis. The chart is rendered using the Vega-Lite API, which registers Vega and Vega-Lite with `vl.register` and renders to SVG via the `vega` view. Data is loaded asynchronously from a CSV file using `d3.csv`, while tooltips are enabled through the `vega-tooltip` Handler. The appearance is customized through a config object that adjusts axis and label styling.

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