Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of React & D3 Vibecoding Starter

Public visualization

Fork of React & D3 Vibecoding Starter

0 stars0🌍 Public
GGabriel Dantas
Last edited Sep 19, 2025
Created on Sep 19, 2025

This example demonstrates a clean, interactive bar chart built with React and D3.js (v7). It visualizes a small dataset, showing the frequency of letters from a CSV file, with bars for each letter. The chart allows users to click on individual bars to highlight and dim others, creating a selection state. It is built by combining React's component model for state management and DOM control with D3's `scaleBand`, `scaleLinear`, `axisBottom`, and `axisLeft` APIs for rendering and layout. The visualization is fully responsive, using a `ResizeObserver` to recalculate dimensions.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed