Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Forked Iterated: United States Honey Production per Year (CS 573 Assignment #9.X)

Public visualization

Forked Iterated: United States Honey Production per Year (CS 573 Assignment #9.X)

0 stars0🌍 Public
AAlex Pietrick
Last edited Oct 28, 2021
Created on Oct 27, 2021

This example shows a line chart of total United States honey production aggregated by year from 1998 to 2012, using the d3.csv, d3.group, and d3.scaleTime APIs to aggregate raw state-level data into yearly totals. The chart renders as an SVG with d3.line for the path and circles for data points, while a custom menu component built with d3.dispatch lets the user select a different quantitative column—such as number of colonies or price per pound—to update the y-axis and line via d3.scaleLinear and d3.axisLeft.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed