Skip to main content
100%

Vega-Lite API Temperature Chart

✓ Published0🌍 Public
Ddrc6587
Last edited Jul 22, 2022
Created on Jul 20, 2022

This interactive chart displays San Francisco temperature trends over time, rendered as a thin line with tooltips that reveal exact temperature values on hover. Built using the Vega-Lite API, it leverages `vl.markLine`, `vl.x().fieldT`, and `vl.y().fieldQ` to encode the temporal and quantitative data, while `vega-tooltip`’s `Handler` provides the interactive popups. The visualization pulls CSV data from a GitHub gist via D3’s `csv` function, with styling customized through the `config` object. The chart resizes to fill the browser window using `autosize` and renders as SVG.

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.

Start at 4:30:00

MIT Licensed

Similar vizzes