Activity-6 Q3
✓ Published0🌍 Public
This example shows a stacked horizontal bar chart of manga readers by genre (Action and Romance) across five age groups, using data from a CSV file. It loads D3 v7 via UNPKG and renders SVG. The code uses `d3.stack`, `d3.scaleBand`, `d3.scaleLinear`, `d3.axisLeft`, and `d3.axisBottom` to construct the chart, with a custom tooltip on mouseover. A legend and axis labels are included, and colors differentiate the two genres.
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