Task 8 q2_1
✓ Published0🌍 Public
This example shows a stacked bar chart of student marks across four subjects—Math, Science, History, and English—using data from a CSV file. The visualization renders as SVG, with each bar segment colored by subject via a D3 ordinal scale. Hovering a segment reveals a tooltip with the exact percentage, using mouse events. The chart includes axes, a legend, and a title, all built with D3 v7’s `scaleBand`, `scaleLinear`, `d3.stack`, and `d3.axisLeft`/`d3.axisBottom`.
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