Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity6_task2

Public visualization

Viewing a saved revision (read-only)

347bfff2330f4ba791593588653c0bed

Activity6_task2

0 stars1🌍 Public
KKritin Kesav
Last edited Apr 11, 2024
Created on Apr 10, 2024
Forked from Hello VizHub

A stacked bar chart visualizes the impact of movie genre on IMDb ratings, with each bar showing the proportion of films across five rating bands from “below 5.0” to “above 8.5.” The chart makes it clear that documentaries skew toward higher ratings, while action films cluster at the lower end. Built with D3 v7, the visualization uses `d3.stack()` to compute the stacked segments and `d3.scaleBand` for the categorical genre axis. Hovering over a segment triggers a tooltip that displays the exact percentage for that rating level within the genre. Data comes from a CSV file loaded with D3’s data handling methods.

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.