question-2
✓ Published0🌍 Public
The chart displays the percentage distribution of 10th-grade student scores across seven subjects, with horizontal stacked bars for five grade bands ranging from "below 60" to "above 90." It reads subject data from a local CSV file. Using d3.scaleBand for the categorical y-axis and d3.scaleLinear for the percentage x-axis, it applies d3.stack to produce the stacked segments and d3.axisBottom with tick lines for grid reference. Hovering over a segment triggers a tooltip that shows the exact percentage for that subject and score band.
AI-generated descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.
MIT Licensed