{"id":31766238,"url":"https://github.com/ayokanmi-adejola/scatterplot-graph","last_synced_at":"2025-10-10T00:30:19.976Z","repository":{"id":310059843,"uuid":"1038548570","full_name":"Ayokanmi-Adejola/Scatterplot-Graph","owner":"Ayokanmi-Adejola","description":"A data visualization project showcasing the 35 fastest cycling times up, with contextual analysis of doping allegations in professional bicycle racing. Featuring time-based scaling, responsive axis generation, and dynamic tooltip systems. Built with React 18, TypeScript, and Tailwind CSS.","archived":false,"fork":false,"pushed_at":"2025-08-15T12:19:44.000Z","size":53,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-30T00:00:40.990Z","etag":null,"topics":["d3-visualization","eslint","react18","tailwindcss","typescript","vite"],"latest_commit_sha":null,"homepage":"https://cyclist-performance-data-visualizat.vercel.app","language":"TypeScript","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/Ayokanmi-Adejola.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-08-15T12:07:41.000Z","updated_at":"2025-09-15T13:27:31.000Z","dependencies_parsed_at":"2025-08-15T14:35:29.599Z","dependency_job_id":null,"html_url":"https://github.com/Ayokanmi-Adejola/Scatterplot-Graph","commit_stats":null,"previous_names":["ayokanmi-adejola/cyclist-performance-data-visualization","ayokanmi-adejola/scatterplot-graph"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Ayokanmi-Adejola/Scatterplot-Graph","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ayokanmi-Adejola%2FScatterplot-Graph","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ayokanmi-Adejola%2FScatterplot-Graph/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ayokanmi-Adejola%2FScatterplot-Graph/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ayokanmi-Adejola%2FScatterplot-Graph/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Ayokanmi-Adejola","download_url":"https://codeload.github.com/Ayokanmi-Adejola/Scatterplot-Graph/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ayokanmi-Adejola%2FScatterplot-Graph/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279002359,"owners_count":26083356,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-09T02:00:07.460Z","response_time":59,"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":["d3-visualization","eslint","react18","tailwindcss","typescript","vite"],"created_at":"2025-10-10T00:29:57.042Z","updated_at":"2025-10-10T00:30:19.967Z","avatar_url":"https://github.com/Ayokanmi-Adejola.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cyclist Performance Data Visualization\n\nA professional D3.js scatterplot visualization analyzing doping allegations in professional bicycle racing, featuring the 35 fastest times up Alpe d'Huez normalized to 13.8km distance.\n\n![Cyclist Data Scatterplot](https://img.shields.io/badge/D3.js-Visualization-orange) ![React](https://img.shields.io/badge/React-18.3.1-blue) ![TypeScript](https://img.shields.io/badge/TypeScript-5.5.3-blue) ![Tailwind CSS](https://img.shields.io/badge/Tailwind-3.4.1-cyan)\n\n\u003cimg width=\"1920\" height=\"1422\" alt=\"image\" src=\"https://github.com/user-attachments/assets/a26e030f-6cd2-44be-a62e-b20af3486cc9\" /\u003e\n\n\n## 📊 Features\n\n- **Interactive Scatterplot**: D3.js-powered visualization with smooth animations and transitions\n- **Data-Driven Insights**: Visual analysis of cyclist performance data with doping allegations context\n- **Responsive Design**: Optimized for all screen sizes and devices\n- **Professional UI**: Clean, modern interface with intuitive color coding\n- **Interactive Tooltips**: Detailed information on hover with cyclist statistics\n- **Accessibility**: Proper semantic markup and keyboard navigation support\n\n## 🛠️ Technology Stack\n\n- **Frontend Framework**: React 18 with TypeScript\n- **Data Visualization**: D3.js v7\n- **Styling**: Tailwind CSS\n- **Build Tool**: Vite\n- **Code Quality**: ESLint with TypeScript support\n\n## 📈 Data Visualization Features\n\n### Chart Components\n- **X-Axis**: Years (1994-2015) with proper tick formatting\n- **Y-Axis**: Race times in MM:SS format using D3 time scales\n- **Data Points**: Color-coded circles representing individual cyclist performances\n- **Legend**: Clear distinction between clean records and doping allegations\n- **Tooltips**: Contextual information including cyclist name, nationality, year, time, and allegations\n\n### Color Coding\n- 🟢 **Green**: Clean records (no doping allegations)\n- 🟠 **Orange**: Riders with documented doping allegations\n\n## 🚀 Getting Started\n\n### Prerequisites\n- Node.js 18+ \n- npm or yarn package manager\n\n### Installation\n\n1. **Clone the repository**\n   ```bash\n   git clone https://github.com/Ayokanmi-Adejola/cyclist-data-visualization.git\n   cd cyclist-data-visualization\n   ```\n\n2. **Install dependencies**\n   ```bash\n   npm install\n   ```\n\n3. **Start development server**\n   ```bash\n   npm run dev\n   ```\n\n4. **Open your browser**\n   Navigate to `http://localhost:5173`\n\n### Build for Production\n\n```bash\nnpm run build\nnpm run preview\n```\n\n## 📁 Project Structure\n\n```\nsrc/\n├── components/\n│   └── ScatterplotChart.tsx    # Main D3.js visualization component\n├── App.tsx                     # Main application component\n├── main.tsx                    # Application entry point\n└── index.css                   # Global styles with Tailwind\n```\n\n## 🎯 Technical Implementation\n\n### D3.js Integration\n- **Scales**: Linear scale for years, time scale for race times\n- **Axes**: Automatically generated with proper tick formatting\n- **Data Binding**: Efficient data-driven DOM manipulation\n- **Animations**: Smooth transitions for interactive elements\n\n### React Integration\n- **Hooks**: useEffect for D3 lifecycle management\n- **Refs**: Direct DOM access for D3 operations\n- **State Management**: React state for data loading and error handling\n\n### Performance Optimizations\n- **Efficient Rendering**: Minimal re-renders with proper dependency arrays\n- **Memory Management**: Cleanup functions for D3 event listeners\n- **Responsive Design**: CSS-based responsiveness with D3 scale adjustments\n\n## 📊 Data Source\n\nThe visualization uses cyclist performance data from freeCodeCamp's reference dataset:\n- **Source**: [Cyclist Data JSON](https://raw.githubusercontent.com/freeCodeCamp/ProjectReferenceData/master/cyclist-data.json)\n- **Content**: 35 fastest times up Alpe d'Huez\n- **Time Period**: 1994-2015\n- **Normalization**: All times normalized to 13.8km distance\n\n## 🧪 Testing\n\nThis project passes all freeCodeCamp Data Visualization certification tests:\n\n- ✅ Proper DOM structure with required IDs\n- ✅ D3.js axis generation with tick marks\n- ✅ Correct data attribute formatting\n- ✅ Interactive tooltip functionality\n- ✅ Legend implementation\n- ✅ Responsive axis scaling\n\nRun tests using the freeCodeCamp test suite included in the application.\n\n## 🎨 Design Philosophy\n\n- **Clean Aesthetics**: Minimalist design focusing on data clarity\n- **Professional Typography**: Consistent font hierarchy and spacing\n- **Intuitive Color Scheme**: Meaningful color coding with accessibility in mind\n- **Smooth Interactions**: Subtle animations enhancing user experience\n- **Mobile-First**: Responsive design principles throughout\n\n## 🤝 Contributing\n\n1. Fork the repository\n2. Create a feature branch (`git checkout -b feature/amazing-feature`)\n3. Commit your changes (`git commit -m 'Add amazing feature'`)\n4. Push to the branch (`git push origin feature/amazing-feature`)\n5. Open a Pull Request\n\n\n\n## 🙏 Acknowledgments\n\n- **freeCodeCamp**: For providing the dataset and project requirements\n- **D3.js Community**: For excellent documentation and examples\n- **React Team**: For the robust frontend framework\n- **Tailwind CSS**: For the utility-first CSS framework\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fayokanmi-adejola%2Fscatterplot-graph","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fayokanmi-adejola%2Fscatterplot-graph","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fayokanmi-adejola%2Fscatterplot-graph/lists"}