🌍 Public
Viewing a saved revision (read-only)
67a1a8b8cdbf45309f271faa5a1cecb9
question 3(task 2)
This example shows average subject scores in math, science, and English for five schools, displayed as a horizontal stacked bar chart. Each bar segment represents a subject’s contribution to the total score, with a color legend identifying the subjects. The visualization uses D3 v7 to load CSV data, apply a stack layout, and render SVG rectangles scaled by linear and band scales. Axes, a total-score axis label, and an interactive-free legend are drawn using D3’s axis and ordinal color APIs.
AI-generated description