Historic Hurricane Tracks Visualization

Project Write-up

Statistics:



Project Write-up

This interactive visualization project brings to life historical hurricane tracks across the Atlantic and Gulf of America for June through November, leveraging NOAA's HURDAT2 dataset. Below is an overview of each phase of development:

Phase 1: Data Preparation

Phase 2: Interactive Map & Controls

Phase 3: Data Visualization with Charts

Phase 4: Animation & Legend

Phase 5: Dark Theme & Styling

Key Code Snippets

Parsing Dates (YYYYMMDD):

function parseDate(dateString) {
  const year = +dateString.slice(0,4);
  const month = +dateString.slice(4,6) - 1;
  const day = +dateString.slice(6,8);
  return { year, month, day };
}

Counting Unique Storms per Month:

function updateStormsChart(data, year) {
  const counts = Array(12).fill(0);
  data.forEach(storm => {
    const months = new Set();
    storm.observations.forEach(obs => {
      const d = parseDate(obs.date);
      if (d.year === +year) months.add(d.month);
    });
    months.forEach(m => counts[m]++);
  });
  // build bar chart with counts.slice(5,11)
}