Filterable Cocktail Ingredient Bar Chart
✓ Published0🌍 Public
A filterable bar chart shows the number of students enrolled in the top 50 courses at a university, ranked by enrollment. A dropdown menu lets the user filter the data by department (CSIS, CAM, or GAV), which updates the chart to only display courses from that department. The visualization is built with React and D3 v5, using D3's `scaleBand` for the categorical y-axis, `scaleLinear` for the numerical x-axis, and SVG `rect` elements to render the bars. Data is loaded asynchronously from a CSV file using D3's `csv` function, and the selection handler updates the state to re-filter and re-sort the displayed bars.
AI-generated descriptionMIT Licensed