question 3(task 2)
✓ Published0🌍 Public
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 descriptionMIT Licensed