Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity_6 Task2

Public visualization

Viewing a saved revision (read-only)

fb259396005445d0bf22249be6311225

Activity_6 Task2

0 stars0🌍 Public
Bbhavanadupati3@gmail.com
Last edited Oct 22, 2024
Created on Oct 22, 2024
Forked from Hello VizHub

This stacked bar chart displays the percentage distribution of IMDb rating levels across six movie genres, with each bar segmented to show the proportion of ratings below 5.0 through above 8.5. Hovering over a bar segment reveals a tooltip with the exact percentage for that genre and rating category. Built with D3 v7 using SVG rendering, the visualization employs the `d3.stack()` function to generate stacked data, `d3.scaleBand()` for the categorical y-axis, and `d3.scaleLinear()` for the percentage x-axis. Data comes from a local CSV file with pre-aggregated percentages per genre.

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.