Assignment 6 Diverging Bar Chart
✓ Published1🌍 Public
Aahuynh8@dons.usfca.edu
Last edited Mar 4, 2024
Created on Mar 4, 2024
The chart compares average Attack and Defense stats across Pokémon generations using horizontal diverging bars, with Attack extending rightward and Defense leftward from a central axis. It employs D3 v6 to create an SVG visualization, using scaleBand for the categorical y-axis and separate linear scales for each metric. Bars are colored with a blue-red interpolated scale, and a d3-legend legend distinguishes the two directions. Data comes from a CSV file containing per-generation averages, rendered as static rectangles without animation.
AI-generated descriptionCS 360 Assignment 6 Diverging Bar Chart Annie Huynh
MIT Licensed