Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity 6

Public visualization

Viewing a saved revision (read-only)

34e2a98fdcd14074b81f70bdf449f028

Activity 6

0 stars0🌍 Public
Iibrahimpatnamrohit1990@gmail.com
Last edited Apr 15, 2024
Created on Apr 15, 2024
Forked from Hello VizHub

This stacked bar chart shows the percentage of IMDb ratings across five levels for six movie genres, highlighting how genre influences rating distributions. The code uses d3.stack() to create the stacked series, d3.scaleOrdinal() for color encoding, and d3.axisBottom() and d3.axisLeft() for axes. Hover interactions trigger tooltip pop-ups displaying exact percentages via d3.format. The visualization renders in SVG, with data loaded from a CSV file containing genre and rating proportions.

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.