Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

React & D3 Vibecoding Starter

Public visualization

Viewing a saved revision (read-only)

5fa22ef5978143b9909ec6556999479c

React & D3 Vibecoding Starter

1 star199🌍 Public
CCurran Kelleher
Last edited Jun 12, 2025
Created on Mar 17, 2025

This example shows an interactive bar chart of letter frequencies from a CSV file, rendered in React with D3.js. The visualization updates responsively to window resizing via ResizeObserver and allows hover to change bar color and click to select or deselect bars. The code demonstrates a modular architecture where React manages state and component lifecycle, while D3 handles SVG rendering, scales, and axes through its `scaleBand`, `scaleLinear`, and `axisBottom`/`axisLeft` APIs.

AI-generated description

Based on the this report from the U.S. Census Bureau for 2022, this visualization shows estimated median household incomes by race and gender. The data may not be exact, but it's a "best guess" at disaggregation given the overall trends.

Notes:

  • Data Sources: The U.S. Census Bureau's 2022 report provides median household income figures by race and Hispanic origin. However, it does not disaggregate these figures by the gender of the householder. The provided gender-specific income estimates are derived from general patterns observed in income disparities between male and female householders across all races.

  • Estimation Method: While exact figures for median household income by both race and gender are not directly available, the estimates above are based on the overall median incomes for each racial group, adjusted by typical income ratios between male and female householders. These adjustments consider that male householders generally have higher median incomes than female householders.

  • Variability: Income data can vary based on factors such as geographic location, age, education, and household composition. The figures provided are national medians and may not reflect regional variations or specific community circumstances.

For the most accurate and detailed statistics, refer to the U.S. Census Bureau's official publications and datasets.

Built with VizHub AI.