Skip to main content
100%

A7_Multi-line Chart

✓ Published13🌍 Public
DDuc Pham
Last edited Mar 25, 2024
Created on Mar 24, 2024

This multi-line chart compares average monthly temperatures across four U.S. cities—NYC, LA, Chicago, and Houston—using data from a CSV file. It renders four colored lines (blue, red, green, orange) via `d3.line` and `d3.curveLinear`, with circular dots for each city. Built with d3.v7 and SVG, it includes a hover tooltip that displays the city and temperature in Fahrenheit. The y-axis domain is fixed from 10 to 90 degrees, and the chart uses `d3.scaleBand` for the x-axis (month names) and `d3.scaleLinear` for the y-axis.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes