Skip to main content
100%

Line Chart of Temperature

✓ Published1🌍 Public
JJohn Jeevasaeyan
Last edited Sep 6, 2021
Created on Sep 6, 2021

This line chart visualizes daily temperature readings from San Francisco over the course of a week, using the vega-lite-api library to construct a single smooth line with a semi-transparent stroke. The x-axis maps timestamps while the y-axis encodes temperature values, with tooltips exposing the exact temperature on hover. Data is loaded asynchronously from a CSV file via d3.csv, and the chart is rendered by vega-lite, which compiles the specification into a vega view with an SVG output. Custom axis styling and font sizes are configured through a separate config object, and the visualization automatically fits the full window size.

AI-generated description

A visualization constructed using the vega-lite-api.

MIT Licensed

Similar vizzes