Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Vega Lite API

Public visualization

Viewing a saved revision (read-only)

e25f1935909248798a7a3cf41bf70683

Vega Lite API

0 stars0🌍 Public
Llefat92
Last edited Aug 13, 2023
Created on Aug 13, 2023

This example visualizes temperature fluctuations over time using a Vega-Lite area chart, with data sourced from a CSV of weekly San Francisco temperatures. The visualization loads data via D3’s `csv` method and constructs the chart programmatically using the `vega-lite-api` library, registering it with Vega and Vega-Lite. The chart encodes time on the x-axis and quantitative temperature values on the y-axis, with a tooltip displaying the temperature. Custom styling through a `config` object adjusts axis labels, titles, and colors, while the rendering is handled as an SVG via Vega’s view renderer.

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.