{"id":49509263,"url":"https://github.com/com-480-data-visualization/data-vizviz","last_synced_at":"2026-05-01T18:33:55.265Z","repository":{"id":283640057,"uuid":"952433461","full_name":"com-480-data-visualization/data-vizviz","owner":"com-480-data-visualization","description":null,"archived":false,"fork":false,"pushed_at":"2025-05-29T09:00:04.000Z","size":14396,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-29T09:42:13.329Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/com-480-data-visualization.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-03-21T09:18:45.000Z","updated_at":"2025-05-29T09:00:07.000Z","dependencies_parsed_at":"2025-03-21T10:37:24.371Z","dependency_job_id":"a122bdfe-89f6-4305-87c0-48b5384c1458","html_url":"https://github.com/com-480-data-visualization/data-vizviz","commit_stats":null,"previous_names":["com-480-data-visualization/data-vizviz"],"tags_count":0,"template":false,"template_full_name":"com-480-data-visualization/com-480-project-template","purl":"pkg:github/com-480-data-visualization/data-vizviz","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/com-480-data-visualization%2Fdata-vizviz","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/com-480-data-visualization%2Fdata-vizviz/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/com-480-data-visualization%2Fdata-vizviz/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/com-480-data-visualization%2Fdata-vizviz/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/com-480-data-visualization","download_url":"https://codeload.github.com/com-480-data-visualization/data-vizviz/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/com-480-data-visualization%2Fdata-vizviz/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32508902,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-05-01T18:33:54.540Z","updated_at":"2026-05-01T18:33:55.256Z","avatar_url":"https://github.com/com-480-data-visualization.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Project of Data Visualization (COM-480)\n\n| Student's name | SCIPER |\n| -------------- | ------ |\n| Romain Lattion | 347395 |\n| Jadd-Ilyes Ali Larbi | 327250 |\n| Corentin Barut | 329702 |\n\n\u003cp align=\"center\"\u003e\n  \u003cfigure\u003e\n    \u003cimg src=\"img/swisspendulum2.png\" width=\"100%\" alt=\"\" /\u003e\n  \u003c/figure\u003e\n\u003c/p\u003e\n\n# Swiss Pendulum\n\nA web-based data visualization project for exploring commuter mobility patterns in Switzerland, built as part of the COM-480 Data Visualization course. The project uses datasets from the Swiss Federal Statistical Office (OFS) to create interactive visualizations, including a commuter flow map, a canton bar chart race, a transport mode comparison, and a time-distance clock.\n\n**➡️ [Live Website](https://com-480-data-visualization.github.io/data-vizviz/)**  \n**🎥 [Watch Demo on YouTube](https://www.youtube.com/watch?v=l_0hukL3RVo\u0026ab_channel=SwissPendulum)**\n\n## Table of Contents\n- [Project Overview](#project-overview)\n- [Technical Setup](#technical-setup)\n  - [Prerequisites](#prerequisites)\n  - [Installation](#installation)\n  - [File Structure](#file-structure)\n- [Usage](#usage)\n  - [Running the Web Site](#running-the-web-site)\n  - [Interacting with Visualizations](#interacting-with-visualizations)\n- [Dependencies](#dependencies)\n- [Data Sources](#data-sources)\n\n## Project Overview\nThe Swiss Pendulum project visualizes commuter mobility across Switzerland, focusing on:\n- **Commuter flows** between cities and cantons.\n- **Transport mode preferences** (e.g., car, train, bike).\n- **Travel time and distance** distributions.\n- **Temporal trends** from 2010 to 2023.\n\nThe platform features four main visualizations:\n1. **Interactive Commuter Flow Map**: Displays Swiss cities as proportional circles based on commuter volume, with selectable routes.\n2. **Canton Bar Chart Race**: Animates the ranking of cantons by commuter volume over time.\n3. **Transport Mode Comparison**: Shows the distribution of transport modes used by commuters, with filtering options.\n4. **Distance Plot**: Visualizes travel distance distributions using an animated bar plot.\n5. **Time Clock**: Visualizes travel time distributions using a radial clock design.\n\nThe project is hosted on [GitHub Pages](https://com-480-data-visualization.github.io/data-vizviz/) for easy access.\n\n## Technical Setup\n\n### Prerequisites\nTo run or develop the Swiss Pendulum project locally, ensure you have:\n- A modern web browser (e.g., Chrome, Firefox, Edge).\n- A local web server (e.g., Python's `http.server`, Node.js `http-server`, or VS Code Live Server extension) to serve the static files.\n- Git for cloning the repository.\n- (Optional) A code editor like VS Code for modifying the source code.\n\nNo server-side processing or backend is required, as the application is entirely client-side and uses static JSON data.\n\n### Installation\n1. **Clone the Repository**:\n   ```bash\n   git clone https://github.com/com-480-data-visualization/data-vizviz.git\n   cd data-vizviz\n   ```\n\n2. **Serve the Application Locally**:\n   Use a local web server to serve the files. For example, with Python:\n   ```bash\n   python -m http.server 8000\n   ```\n   Then, open `http://localhost:8000` in your browser.\n\n3. **Deploy to GitHub Pages** (for maintainers):\n   The project is configured to deploy automatically to GitHub Pages on pushes to the `main` branch. Ensure the repository settings enable GitHub Pages under the `Pages` section, pointing to the `main` branch.\n\n### File Structure\n```\ndata-vizviz/\n├── datasets/                     # Preprocessed JSON data files\n│   ├── pendulaire_2_js_v3.js     # Transport mode data\n│   ├── pendulaire_4.js           # Commuter data per canton\n│   ...                           # Other datasets\n├── img/                          # Image assets for visualizations\n├── bar_chart_transport_type_script.js  # Transport mode comparison logic\n├── bar_chart_transport_type_style.css # Transport mode comparison styles\n├── distance_script.js            # Distance visualization logic\n├── distance_style.css            # Distance visualization styles\n├── map_script.js                 # Map visualization logic\n├── map_style.css                 # Map visualization styles\n├── race_chart2.js                # Canton bar chart race logic\n├── race_chart2.css               # Canton bar chart race styles\n├── script_times2.js              # Time visualization logic\n├── style_times2.css              # Time visualization styles\n├── website_script.js             # Core website logic (scrolling, navigation)\n├── website_style.css             # Core website styles\n├── index.html                    # Main HTML file\n├── README.md                     # This file\n├── Process Book                  # Describes how the project was carried out\n```\n\n## Usage\n\n### Running the Web Site\n1. Access the live demo at [https://com-480-data-visualization.github.io/data-vizviz/](https://com-480-data-visualization.github.io/data-vizviz/).\n2. Alternatively, run locally by following the [Installation](#installation) steps.\n3. Navigate through sections (Home, Map, Commuters, Transport, Time, Distance) using the header navigation or scroll arrows.\n\n### Interacting with Visualizations\n- **Map**:\n  - Select a view mode (Arrivals, Departures, Routes) and year from dropdowns.\n  - Choose departure and arrival cities to see commuter flow details.\n  - Zoom and pan the map to explore city-level data.\n- **Commuters per Canton**:\n  - Watch the animated bar chart race showing canton rankings by commuter volume.\n  - Use the play/pause button and metric selector to customize the view.\n- **Transport Modes**:\n  - Select a year to view transport mode distributions.\n  - Click bars to open a modal for comparing mode trends over time.\n  - Use Start/Reset buttons to control animations.\n- **Time**:\n  - Use the slider or \"Next Year\" button to explore commuter travel time distributions.\n  - Hover over time buckets to see exact counts.\n- **Distance**:\n  - Adjust the year slider to visualize distance distributions.\n  - Compare years using the dropdown for side-by-side analysis.\n\n## Dependencies\nThe project relies on the following client-side libraries, loaded via CDN:\n- **D3.js (v7)**: For map rendering and data manipulation.\n- **D3-geo (v1)**: For geographic projections in the map.\n- **TopoJSON (v3)**: For efficient map data encoding.\n- **jQuery (v3.6.0)**: For DOM manipulation and AJAX.\n- **Select2 (v4.1.0)**: For enhanced dropdown menus.\n- **p5.js (v1.4.2)**: For canvas-based animations (time-distance clock).\n- **Chart.js (v4)**: For bar chart race and transport mode visualizations.\n\nAll dependencies are included in `index.html` via `\u003cscript\u003e` and `\u003clink\u003e` tags, requiring no local installation.\n\n## Data Sources\nThe visualizations use preprocessed JSON files derived from the Swiss Federal Statistical Office (OFS) datasets (see milestone 1):\n- Commuters per canton (2010–2023).\n- Commuters' means of transport (1990, 2000, 2010–2023).\n- Commuters' travel time and distance (1990, 2000, 2010–2023).\n- Additional datasets for journey types and municipality-level flows.\n\nData is stored in the `datasets/` folder as JSON files for fast client-side loading.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcom-480-data-visualization%2Fdata-vizviz","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcom-480-data-visualization%2Fdata-vizviz","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcom-480-data-visualization%2Fdata-vizviz/lists"}