Skip to main content
100%

activity6_task2

✓ Published1🌍 Public
Ppaulphillips@my.unt.edu
Last edited Oct 20, 2024
Created on Oct 20, 2024
Forked from Hello VizHub

This example shows the distribution of IMDb movie ratings across different genres as a stacked horizontal bar chart, where each bar segment represents the percentage of movies within a rating range. The chart uses D3 v7 to load the data, build stacked bars with the `d3.stack` layout, and apply ordinal color scales. It includes interactive tooltips that appear on hover to display the exact percentage for each rating category, along with custom axis labels and styling defined in the accompanying CSS. The data comes from a CSV file with six genres and five rating brackets.

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.
MIT Licensed

Similar vizzes