Skip to main content
100%

Activity-6 Q3

✓ Published0🌍 Public
KKavyaEti
Last edited Oct 23, 2024
Created on Oct 22, 2024
Forked from Hello VizHub

This example shows a stacked bar chart of manga readership by genre and age group, sourced from a local CSV file. Each age bracket, from 10-19 to 50 and above, contains segments for action and romance readers, with bar lengths proportional to reader counts. The visualization employs D3.js v7 and renders via SVG, using `d3.stack()` to create the stacked layout, `d3.scaleOrdinal` for genre colors, and `d3.scaleLinear` and `d3.scaleBand` for axes. Tooltips display exact reader numbers on hover.

AI-generated description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.
MIT Licensed

Similar vizzes