🌍 Public
Viewing a saved revision (read-only)
2ff27c5156dc4084a68053f498e59f0e
Fork of Responsive Bar Chart
This example displays a horizontal bar chart showing visitors per year for different states, with each bar labeled by its numeric value. It uses D3 v5 to fetch CSV data from a remote gist and render the visualization as an SVG. The code employs `d3.scaleLinear` for the x-axis and `d3.scaleBand` for the y-axis, appending rectangles for bars and text elements for labels. The chart highlights the relative visitor counts across states, with the data source directly loaded via `d3.csv`.
AI-generated description