Skip to main content
Public

Share visualization

Loading preview…

Fork of React & D3 Vibecoding Starter

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

Fork of React & D3 Vibecoding Starter

0
Ddr_nareshvet@yahoo.in
Last edited Jun 16, 2025
Created on Jun 16, 2025

This interactive bar chart displays the frequency of letters in a small dataset, rendered with React and D3. The visualization updates dynamically as users click bars to filter and highlight specific categories. Built with React 19 and D3 v7, the code leverages `d3.scaleBand`, `d3.scaleLinear`, `d3.axisBottom`, and `d3.axisLeft` to construct the chart. A `ResizeObserver` tracks container dimensions, while the `csv` API loads the sample data. The chart uses the `join` pattern for declarative SVG updates, with CSS transitions for smooth hover and selection effects.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed