flood-archive-vis-svelte Svelte Themes

Flood Archive Vis Svelte

πŸ—ΊοΈ Data visualization app for global large flood events (1985-2021) using time series data

πŸŒ€ Flood Archive Visualization πŸ—ΊοΈ

⚠️ Note

This project is a rewrite in Svelte of the React app flood-archive-vis-react. It was completed by Cursor and Claude-3.7-Sonnet in 4 hours, along with a few cosmetic touch-ups that took an additional 4 hours.

πŸ“– Introduction

This project visualizes the Global Active Archive of Large Flood Events data from 1985 to 2021, utilizing interactive maps and time-based filtering to explore historical flood events around the globe.

✨ Features

  • Interactive map visualization of global flood events
  • Time-based filtering with animation capabilities
  • Geographic area selection for focused exploration
  • Color-coded visualization based on death toll
  • Detailed tooltips with flood event information

πŸ› οΈ Technologies Used

πŸ“₯ Installation

  1. Clone the repository:

    git clone https://github.com/kumilange/flood-archive-vis-svelte.git
    cd flood-archive-vis-svelte
    
  2. Install dependencies:

    npm install
    
  3. Start the development server:

    npm run dev
    
  4. Open http://localhost:5173 in your browser.

πŸ’» Development

  • npm run dev - Start development server
  • npm run build - Build for production
  • npm run preview - Preview production build
  • npm run format - Format code with Prettier
  • npm run lint - Lint code with ESLint
  • npm run check - Type-check with TypeScript

πŸ“‚ Project Structure

flood-archive-vis/
β”œβ”€β”€ src/                 # Source code
β”‚   β”œβ”€β”€ assets/          # Image assets
β”‚   β”œβ”€β”€ components/      # Svelte components
β”‚   β”‚   β”œβ”€β”€ AreaSelect/  # Geographic area selection
β”‚   β”‚   β”œβ”€β”€ Legend/      # Map legend component
β”‚   β”‚   └── RangeSlider/ # Time range slider
β”‚   β”œβ”€β”€ styles/          # Global styles
β”‚   β”œβ”€β”€ routes/          # Svelte routes
β”‚   └── lib/             # Library code & utilities
β”œβ”€β”€ .eslintrc.cjs        # ESLint configuration
β”œβ”€β”€ .prettierrc.json     # Prettier configuration
β”œβ”€β”€ tsconfig.json        # TypeScript configuration
└── vite.config.ts       # Vite configuration

πŸ“Š Data Source

This application uses data from the Dartmouth Flood Observatory, University of Colorado, maintained by G.R. Brakenridge. The Global Active Archive of Large Flood Events documents major flood events worldwide from 1985 to the present.

Citation: G.R. Brakenridge. Global Active Archive of Large Flood Events. Dartmouth Flood Observatory, University of Colorado, USA. http://floodobservatory.colorado.edu/Archives/

Top categories

Loading Svelte Themes