🌍 Public
Viewing a saved revision (read-only)
ae569660c8a04f41b774e94389004ab4
ICE-7(q2)
This example visualizes the distribution of Pokémon types among the first 100 Pokémon from the PokeAPI. It fetches Pokémon data, extracts each creature’s primary type, and renders a pie chart using D3.js’s `d3.pie` and `d3.arc` functions. Each slice is labeled with the type name and count, while an interactive legend built with SVG `rect` and `text` elements identifies color associations. The chart uses `d3.rollup` for aggregation and D3’s ordinal color scale for slice coloring.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.