task3-q1
✓ Published0🌍 Public
This scatter plot compares the Attack and Defense stats of Pokémon, with each point colored by the Pokémon's primary type. The visualization uses D3.js v7 to load a CSV dataset from GitHub, map the data to linear scales for both axes, and render SVG circles. Axis labels are added as text elements, and a categorical color scheme distinguishes the different Pokémon types.
AI-generated descriptionPokémon Scatter Plot Visualization
This project visualizes Pokémon stats using a scatter plot with D3.js.
📊 Features
- Scatter plot of Attack vs Defense
- Points colored by Pokémon Type
- Interactive and responsive using D3 v7
📁 Dataset
CSV used: [ all_pokemon_data.csv`](https://raw.githubusercontent.com/yourusername/pokemon-viz/main/all_pokemon_data.csv)
The dataset includes Pokémon stats such as HP, Attack, D fense, Speed, and Type.
🔧 How to Use
- Clone this repository or download the
index.htmlfile. - Open
index.htmlin a browser. - The chart will automatically load the CSV data from Gi tHub.
🔗 Live Demo (Optional)
You can host this on GitHub Pages or CodePen.
Made with 💖 and D3.js
MIT Licensed