Skip to main content
100%

Fork of Activity6_Question2.1

✓ Published0🌍 Public
Ssaimanvith22@gmail.com
Last edited Oct 22, 2024
Created on Oct 22, 2024
Forked from Activity6_Task2

This stacked horizontal bar chart visualizes IMDb movie rating distributions across four genres—Fiction, Non-Fiction, Sci-Fi, and Biography—using percentage bands from below 5.0 to above 8.5. The d3.v7 code loads CSV data via d3.csv, applies d3.stack and d3.scaleOrdinal for color mapping, and renders SVG rectangles with d3.axisBottom and d3.scaleBand. Interactive mouseover events trigger tooltips displaying exact percentages, while D3 formatting (d3.format) handles numeric precision.

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