Skip to main content
100%

Activity6_Task2

✓ Published1🌍 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.
MIT Licensed

Similar vizzes