🌍 Public
Viewing a saved revision (read-only)
5069bf0fe7e047b0a3da0d3154c98b1a
Activity6_q2
A stacked bar chart displays student enrollment across five engineering departments, with each bar segmented into Undergraduate, Postgraduate, and PhD counts. The visualization uses d3.csv to load the dataset, d3.stack() to compute stacked series, and d3.scaleBand/d3.scaleLinear for axes. Color encoding distinguishes academic levels via d3.scaleOrdinal, while SVG rectangles render the bars. The chart includes labeled axes for Department and Number of Students.
AI-generated description