Skip to main content
100%

Attendance

✓ Published1🌍 Public
EErick Brandao
Last edited May 30, 2022
Created on May 30, 2022

This example displays a horizontal bar chart of attendance figures by year using React and D3.js. Data is loaded asynchronously from a CSV file via `d3.csv()`. The chart uses `d3.scaleBand()` for the categorical year axis and `d3.scaleLinear()` for the quantitative attendance axis, with magenta gridlines and value labels. SVG rectangles encode each year’s attendance, with a fixed 960×500 canvas and margins for axis labels.

AI-generated description

Smiley face implementation with React & D3.

MIT Licensed

Similar vizzes