Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity6_Task2

Public visualization

Viewing a saved revision (read-only)

6e66da180c4a4d2893a1416e5452a31a

Activity6_Task2

0 stars1🌍 Public
DDouglas mochama
Last edited Apr 15, 2024
Created on Apr 14, 2024

This stacked bar chart shows the distribution of movie ratings across six genres, using proportions from a CSV data source. It displays five rating categories from “below 5.0” to “above 8.5” as stacked segments within each genre bar. The visualization uses d3.csv to load data, d3.stack for stacking, d3.scaleBand for the categorical y-axis, d3.scaleLinear for the numeric x-axis, and d3.scaleOrdinal for color mapping. Clicking any bar triggers an alert showing the genre’s full rating breakdown.

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.