Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity_6 Question 2

Public visualization

Viewing a saved revision (read-only)

e9be3d0c58a2455b83aecc7231c86d4e

Activity_6 Question 2

0 stars0🌍 Public
Ssumithdugyala@my.unt.edu
Last edited Oct 22, 2024
Created on Oct 22, 2024
Forked from Hello VizHub

This stacked bar chart displays student enrollment counts across four courses (Engineering, Business, Medical, Arts) for the years 2000, 2021, 2022, and 2023, using data from a local CSV file. The visualization, rendered as an SVG, uses D3 v7 APIs including `d3.stack`, `d3.scaleBand`, `d3.scaleLinear`, and `d3.axisBottom` to create the horizontal bars. A custom tooltip, styled via CSS, reveals the specific category and sales value when hovering over a segment. The chart includes labeled axes and a legend positioned to the right.

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.