🌍 Public
Viewing a saved revision (read-only)
fe7514a8d1194f29a4a43bc70d831bdd
Fork of Let's make a Bar Graph with D3.js
This D3.js v7 bar chart visualizes movie collection totals from a CSV file, with movie names on the y-axis and collection amounts on the x-axis. The SVG rendering uses `scaleLinear` for the quantitative axis and `scaleBand` for the categorical axis, drawing purple rectangles for each movie. Labels for both axes are added via SVG text elements, with the y-axis label rotated 90 degrees. The chart reads data from `data.csv` using the `csv` function and applies a margin-based layout within the 960x500 SVG canvas.
AI-generated description