Skip to main content
100%

Untitled

✓ Published0🌍 Public
AAlex Pietrick
Last edited Nov 10, 2021
Created on Nov 10, 2021
Forked from HTML Starter

This interactive line chart displays the total honey production in the United States from 1997 to 2012, aggregated by year and grouped by state. A dropdown menu lets viewers select among six metrics—number of colonies, yield per colony, total production, stocks, production value, and price per pound—to switch the displayed line. The visualization uses d3.line, d3.scaleLinear, and d3.schemeSet2 for scaling and coloring, with SVG circles marking each year’s data point. It loads data from a CSV file hosted on GitHub, processes it with d3.group and array methods, and updates the path via a custom update function.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes