🌍 Public
Viewing a saved revision (read-only)
87b1e06644e74f0d90c2985e86d625ad
Fork of Reusable Barplot
This fork of a reusable barplot shows grouped bars comparing element quantities—like Nitrogen, Oxygen, and Helium—across fruit categories (Banana, Apple, Mango, Orange). Built with D3 v7, it uses `scaleBand` for x-axis grouping, `scaleLinear` for the y-axis, and `scaleOrdinal` for color mapping. Animated transitions via `transition()` and `axisBottom`/`axisLeft` render the SVG. Interactive legend labels toggle bar visibility by filtering data and re-rendering the chart through the custom `toggleBars` handler.
AI-generated description