Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity6_Task2

Public visualization

Viewing a saved revision (read-only)

aadd7f5de0574a4aa15e8ef2792be4c4

Activity6_Task2

0 stars0🌍 Public
Ttarun.chintada46@gmail.com
Last edited Oct 23, 2024
Created on Oct 23, 2024
Forked from Hello VizHub

This example visualizes the distribution of IMDb movie ratings across six genres using a stacked horizontal bar chart. The chart displays the proportion of films in each rating category, from below 5.0 to above 8.5, with genres ordered along the y-axis and percentage values on the x-axis. The code loads data from a CSV file, processes it with d3.stack, and renders the SVG using d3.scaleBand, d3.scaleLinear, and d3.scaleOrdinal. Interactive tooltips appear on mouseover to show exact percentages, implemented with D3 event handlers.

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.