American Sheriff Race Compared to Constituents' Non White Population
This visualization compares the racial demographics of American sheriffs and their constituents. The chart plots sheriffs’ racial identity along the X axis, with the percentage of non-white residents in their community on the Y axis, using point color for political party and point size for population. Built with the vega-lite-api, it loads CSV data from the Reflective Democracy American Sheriffs database. The code uses Vega-Lite’s markCircle encoding, configures axes, and applies a custom tooltip handler via vega-tooltip.
AI-generated descriptionA visualization constructed using the vega-lite-api.
A program that loads and parses some CSV data from the Reflective Democracy American Sheriffs database.
The data has been cleaned in Excel to fix case discrepancies and remove percentage sign characters.
The visualization shows the distribution of sheriffs elected categorized by racial identity of the official along the X axis and percentage of non white residents of the electing community along the Y axis. Point color indicates political party affiliation of the elected official and the mark sizing indicates the size of the community population.