/nyc-water

D3 visualization of NYC's trends in water consumption over time

Primary LanguageJavaScript

Data Viz: NYC's trends in water consumption over time

hannahkates.com/nyc-water

About

This is a data storytelling project that explains NYC's water conservation efforts and trends in the decline in total water demand. It is a simple vanilla JavaScript application that includes four d3.js data visualizations.

Data sources

Dependencies

  • d3 v4
  • To trigger chart animations as the reader scrolls, I used Scrollama created by Russell Goldenberg.
  • To implement tooltips, I used d3-tip.js written by Justin Palmer. I copied the code directly into this repo because I had trouble finding a stable, secure link to a hosted version online.

How to run this application locally

  • Clone repo git clone https://github.com/hannahkates/nyc-water.git
  • Run using python dev server python -m SimpleHTTPServer (or other local server options like Atom Live Server)