Skip to main content
100%

MODULE1: Data Selection

✓ Published0🌍 Public
JJournathan
Last edited Mar 21, 2015
Created on Mar 21, 2015

The visualization tracks New York City’s annual water consumption from 1979 to 2009, contrasting total daily use in million gallons with per-capita gallons. It shows a clear downward trend in both metrics over three decades. The code uses D3.js with `d3.csv` to parse the gist-sourced CSV, then renders a dual-line chart via SVG paths and scales (`d3.scaleLinear`, `d3.line`). Hovering triggers a tooltip with `d3.mouse` and `transition.attrTween` for smooth updates, while axes are generated with `d3.axisBottom` and `d3.axisLeft`. The raw data is loaded directly from the linked `Water_Consumption_In_The_New_York_City.csv` file.

AI-generated description

Similar vizzes