Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity6_TASK-2

Public visualization

Viewing a saved revision (read-only)

ff6e2293e8e240b188d1f801b2272eeb

Activity6_TASK-2

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

A stacked bar chart visualizes the distribution of five rating categories across six movie genres, with each bar segment showing the percentage of ratings within that genre. Hovering over a segment displays a tooltip with the exact percentage value. The chart uses d3.stack() to aggregate data from a CSV file, d3.scaleBand() for the categorical genre axis, and d3.scaleLinear() for the percentage scale. Colors are assigned via d3.scaleOrdinal(), and SVG rendering displays the horizontal bars with axis labels.

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.