🌍 Public
Viewing a saved revision (read-only)
3cdb06821abc47069ed911e92f7a3e9b
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