Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Line Chart

Public visualization

Fork of Line Chart

0 stars0🌍 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.

Comments

Sign in to join the discussion.

MIT Licensed