Skip to main content
100%

Task 8 q2_1

✓ Published0🌍 Public
YYeshwanth963@gmail.com
Last edited Apr 9, 2024
Created on Apr 9, 2024
Forked from Hello VizHub

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 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