Skip to main content
100%

Activity6_task2

✓ Published0🌍 Public
DDeekshitha Annreddy
Last edited Oct 23, 2024
Created on Oct 23, 2024
Forked from Activity6_task2

This stacked bar chart shows the distribution of IMDb movie ratings across six genres, with each bar segment representing the percentage of films falling into one of five rating brackets. The visualization uses d3.stack() to compute the stacking layout, d3.scaleBand() for the categorical y-axis, and d3.scaleLinear() for the percentage x-axis. Interactive tooltips display the exact percentage for each genre-rating combination on mouseover. The data is loaded from a CSV file and rendered as SVG elements with an ordinal color scale.

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