A6 Diverging Bar Chart
✓ Published0🌍 Public
This diverging bar chart visualizes police shootings by race and gender, with male counts extending left from a central vertical axis and female counts extending right. The chart uses a red-blue diverging color scale, with color intensity corresponding to magnitude. Built with D3 v7, the visualization aggregates CSV data, filters to only male and female records, and uses separate linear scales for each gender to position the bars from the center. Race categories are placed on a band scale along the y-axis, while the diverging color interpolation and axes are constructed using D3’s scale utilities.
AI-generated descriptionA vanilla HTML implementation of a D3 scatter plot. Shows the Iris Dataset.
MIT Licensed