Skip to main content
100%

demo

✓ Published2🌍 Public
Ddr_nareshvet@yahoo.in
Last edited Jun 16, 2025
Created on Jun 16, 2025

This example shows an interactive bar chart that displays the frequency of letters from A to G. Clicking a bar highlights it and dims the others, while clicking it again deselects it. The chart renders bar elements with rounded corners and includes labeled axes with gridlines. Built with React and D3 v7, it uses `d3.scaleBand` and `d3.scaleLinear` for positioning, `d3.axisBottom` and `d3.axisLeft` for axes, and `ResizeObserver` to adapt to container dimensions. Data is loaded from a local CSV file using `d3.csv`.

AI-generated description
MIT Licensed

Similar vizzes