Skip to main content
100%

[A7] (Small Multiples of Lines Chart with a Color Legend)

✓ Published0🌍 Public
Cctan13@dons.usfca.edu
Last edited Mar 20, 2024
Created on Mar 16, 2024
Forked from HTML Starter

This example uses small multiples to display the Consumer Price Index (CPI) of four grains—Corn, Rice, Rye, and Wheat—from 2000 to 2015, with each grain in its own line chart. A color legend identifies each grain’s stroke color. The code loads CSV data via `d3.csv`, renders SVG line charts using `d3.line` and `d3.axisBottom`, and builds the legend with `d3.legendColor` from the d3-legend library.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes