Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

CSCE 5320 HW 7

Public visualization

Viewing a saved revision (read-only)

7eec5122a9a1409ba014a13ee7c3fc0e

CSCE 5320 HW 7

0 stars1🌍 Public
Rrobersontanner1@gmail.com
Last edited Oct 31, 2026
Created on Oct 30, 2026
Forked from HTML Starter

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