Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of CV: Bar Chart

Public visualization

Viewing a saved revision (read-only)

742ead9635a94be4ba8aa2731c3cfb79

Fork of CV: Bar Chart

0 stars0🌍 Public
Ssravya010
Last edited Mar 9, 2026
Created on Mar 9, 2026
Forked from CV: Bar Chart

This example displays a bar chart of country populations, where each bar is initially black. Clicking a bar turns it white with a black stroke, visually selecting it. The chart is built with React and D3 v7, using D3’s `scaleBand` and `scaleLinear` for axes, and SVG rendering. Data loads from a CSV file, and bar interactions trigger re-renders with updated styling.

AI-generated description