Skip to main content
100%

Fork of Line Chart

✓ Published0🌍 Public
SSweetierams
Last edited Jul 3, 2022
Created on Jul 3, 2022
Forked from HTML Starter

This example displays a red line chart of Walmart temperatures from 2001 to 2021, with year on the x-axis and temperature on the y-axis. It uses d3.csv to load the data, d3.scaleTime and d3.scaleLinear for the respective axes, and d3.axisLeft and d3.axisBottom to render tick marks. The line is generated with d3.line, while d3.extent and d3.max compute the domain. The SVG is rendered in React, with styled axis labels and a title, using D3 v5.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes