Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity 6 _Task 2

Public visualization

Viewing a saved revision (read-only)

98ce594d9f244a73887511342dcd11b9

Activity 6 _Task 2

0 stars0🌍 Public
MMonish Galla
Last edited Apr 6, 2024
Created on Apr 2, 2024
Forked from Hello VizHub

This stacked bar chart visualizes the distribution of IMDb movie ratings across five genres, showing the proportion of films falling into five rating brackets from below 5.0 to above 8.5. Each horizontal bar represents a genre, divided into colored segments corresponding to rating categories, with interactive hover tooltips revealing precise percentages. The visualization uses D3.js (v7) with SVG rendering, utilizing `d3.stack()`, `d3.scaleBand()`, and `d3.scaleLinear()` to construct the chart. Data is loaded from a CSV file containing genre and rating percentage columns.

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.