Skip to main content
100%

task3-q1

✓ Published0🌍 Public
Bbadiniswetha@gmail.com
Last edited Apr 6, 2025
Created on Apr 4, 2025
Forked from Hello VizHub

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 description

Poké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

  1. Clone this repository or download the index.html file.
  2. Open index.html in a browser.
  3. 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

Similar vizzes