Skip to main content
100%

Week 5: Pseudo-Visualization Pokemon Scatterplot

✓ Published0🌍 Public
JJacob Chlebowski
Last edited Sep 22, 2024
Created on Sep 21, 2024
Forked from Marks and Channels

This D3.js scatterplot visualizes Pokémon base stats from a Kaggle dataset, plotting each creature's speed on the X-axis against an offensive-defensive balance score on the Y-axis, with circle radius encoding HP and color encoding elemental type (water, fire, grass, or other). The visualization centers both axes at the canvas midpoint, using `scaleLinear` for coordinate mapping and a custom overlap-detection algorithm in `hue-and-size.js` that adjusts point opacity based on colliding circles. Axes are rendered via `axisBottom` and `axisLeft`, while an SVG background rect and bold directional labels ("Fast," "Slow," "Offensive," "Defensive") orient the viewer.

AI-generated description

Author: Jacob Chlebowski - jachlebowski@wpi.edu Marks and Channels for Pokemon Scatterplot Dataset

The Pokemon Base Stats Dataset

  • Point Marks by X, Y, Size
  • SVG attributes transform and fill
  • D3 Color Schemes
  • Scaling factors
  • SVG Rectangles
  • selection.each()
  • SVG Path Elements
MIT Licensed

Similar vizzes