🌍 Public
Viewing a saved revision (read-only)
db0c0740ce634728b85f97e53fc7e5e7
Barchart-d3
This example displays a bar chart of player statistics from a small dataset, with each bar representing a player's goals or age. The bars are rendered as SVG rectangles using D3 v5, with a dropdown menu to switch between the two data attributes. On mouseover, a bar highlights in orange and displays its value as text. The visualization uses D3's `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom` APIs, with a transition animation on mouseout to restore the bar's original styling.
AI-generated descriptionBarcharts and Histograms. D3 playground.