Skip to main content
๐ŸŒ Public

Share visualization

Send this visualization to others.

Vega-Lite API Template

Public visualization

Vega-Lite API Template

0 stars6๐ŸŒ Public
CCurran Kelleher
Last edited Sep 5, 2019
Created on Sep 5, 2019

This example visualizes a week of temperature data from San Francisco as a line chart. The viz.js file defines the chart using the Vega-Lite API, encoding a temporal x-axis and quantitative y-axis with a tooltip, while config.js customizes the axes and typography for readability. The getData.js file loads the CSV data using d3.csv, and index.js registers Vega-Lite with vega-tooltip, renders the visualization to SVG, and fits it to the window dimensions.

AI-generated description

A visualization constructed using the vega-lite-api.

Comments

Sign in to join the discussion.

MIT Licensed