🌍 Public
Viewing a saved revision (read-only)
9d5c0d45418d4148a24879199b86b82f
CSCE 5320 HW 7
This interactive bar chart compares the effect of three row-ordering strategies—alphabetical, by value, and by a derived attribute—on a table of baseball statistics from 2023. The reusable `barChart()` function, built with D3 v7, applies different sort comparators to the same dataset, allowing side-by-side comparison through toggle buttons. The chart renders as an SVG with axes and labels, using `d3.ascending`, `d3.descending`, and `d3.scaleBand` for positioning. The visible code currently loads CSV data from a GitHub gist and supports values like home runs (HR) but the full rendering logic is incomplete in the shown snippet.
AI-generated description