Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Vega-Lite API Template_Temperature

Public visualization

Viewing a saved revision (read-only)

30432e43f25449d6ac31dd8dd08ae590

Vega-Lite API Template_Temperature

0 stars1🌍 Public
OOleg Zhernovoy
Last edited Nov 26, 2022
Created on Nov 26, 2022

This example visualizes a week of San Francisco temperature readings as a single thick line chart, using data loaded from the UCI Machine Learning Repository’s Auto MPG dataset via a GitHub Gist. The visualization is built entirely with the Vega-Lite API, which programmatically registers Vega and Vega-Lite, and uses d3.csv to fetch the data. The line encodes temperature over time, with tooltips enabled through Vega Tooltip, and the chart is styled by a custom config to remove axis domains and adjust font sizes. The visualization auto-fits to the full browser window dimensions.

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.