Fork of Bar chart with D3.js
✓ Published0🌍 Public
A horizontally oriented bar chart rendered with D3.js v5 and React visualizes the percentage distribution of car colors, loading sample data from a GitHub gist. The chart includes a y-axis grid, value labels, and a subtle animation on mouse hover. When hovering over a bar, the chart highlights it, draws a red dashed horizontal line, and computes and displays the percentage divergence of other bars relative to the selected one. The implementation uses `d3.select`, `d3.scaleBand`, `d3.scaleLinear`, `d3.axisLeft`, and D3 transitions for the interactive effects.
AI-generated descriptionMIT Licensed