Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Line Chart With Vega-lite API

Public visualization

Line Chart With Vega-lite API

0 stars1🌍 Public
Vvmonney
Last edited Sep 30, 2022
Created on Sep 27, 2022

This example displays a line chart of weekly temperature data for San Francisco, loaded from a CSV file via the `d3.csv` function. The visualization is built entirely with the `vega-lite-api` library, which abstracts Vega-Lite specifications into a chainable JavaScript API. The chart encodes timestamps on the x-axis and temperature on the y-axis, with a tooltip showing the temperature value. Custom axis and label styling are applied through a shared config object, and the rendered SVG is fit to the browser window's dimensions.

AI-generated description

A visualization constructed using the vega-lite-api.

Comments

Sign in to join the discussion.

MIT Licensed