🌍 Public
Viewing a saved revision (read-only)
d88929cdc6614f48b7957d99daf08a0f
Improving a Bar Chart for 2017 Baseball Hitting
This bar chart shows the percentage of at bats ending in a hit by pitch for 2017 MLB players with at least 10 HBPs. Bar color intensity encodes total at bats, with a legend mapping ordinal ranges from 276 to 622. D3 v5 with an SVG renderer uses `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom` to construct the visualization, while a custom `colorLegend` function and `d3.interpolateOrRd` apply the chromatic scale. Data is loaded from a CSV using `d3.csv`.
AI-generated description