Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activtiy-6-tutorial-2

Public visualization

Viewing a saved revision (read-only)

e445a60d57294799938f4926c0201f9e

Activtiy-6-tutorial-2

0 stars0🌍 Public
Sswapnadabburi@my.unt.edu
Last edited Oct 24, 2024
Created on Oct 24, 2024

A stacked bar chart displays the percentage of IMDb ratings within five genres (Documentary, Drama, Comedy, Romance, Animation, Action). The horizontal bars show the proportion of ratings across levels from "below 5.0" to "above 8.5," with hovering revealing precise percentages via tooltips. The visualization uses d3.stack, d3.scaleBand, d3.scaleLinear, and d3.axisBottom, rendering SVG elements. Data is loaded from a CSV file, and colors are assigned via d3.scaleOrdinal.

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.