🌍 Public
Viewing a saved revision (read-only)
b243e6c5e4c54a62930ed74dad91c7bf
Fork of Let's make a Bar Graph with D3.js
This example shows a horizontal bar chart of anime titles ranked by view counts, drawn as SVG rectangles. It loads data from `data.csv` using D3’s `csv` function, then maps views to a linear scale and anime names to a band scale for the y-axis. The code uses D3 v7 APIs including `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom` to render axes and the bars.
AI-generated description