Skip to main content
100%

D3 Course 3: Line Chart

✓ Published3🌍 Public
GGabrz
Last edited May 13, 2020
Created on Mar 26, 2020

This example presents a line chart of temperature over time in San Francisco, plotting daily temperature readings along a continuous timeline. The visualization uses D3 v5 with an SVG rendering approach, employing scaleTime and scaleLinear for the axes, and a line generator with curveBasis to create a smooth path. The chart includes labeled axes for "Time" and "Temperature," a title, and gridlines generated via axisBottom and axisLeft with tick sizes. Data is loaded asynchronously from a CSV file through a custom getData() promise, which resolves after a two-second delay before rendering.

AI-generated description

Data Visualization with D3 course; Temperature Line Chart

MIT Licensed

Similar vizzes