Skip to main content
100%

Activity6_Task2

✓ Published1🌍 Public
Kkeerthana11.mcs@gmail.com
Last edited Oct 24, 2024
Created on Oct 24, 2024
Forked from Hello VizHub

This stacked horizontal bar chart visualizes IMDb rating distributions across six movie genres, using five rating bands from "below 5.0" to "above 8.5." Each bar segment’s length encodes the percentage of films in that genre falling within each rating range. The visualization uses d3.stack for the stacked data, d3.scaleOrdinal for categorical color mapping, and d3.scaleLinear for the x-axis. Hovering over a segment triggers a tooltip showing the precise percentage. Data comes from the included `data.csv` file, and the chart is rendered as SVG within a 960x500 pixel canvas.

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