Skip to main content
100%

Activity6_Task2

✓ Published0🌍 Public
PPradhyumna Poralla
Last edited Apr 11, 2024
Created on Apr 11, 2024
Forked from Hello VizHub

This stacked bar chart visualizes the distribution of IMDb ratings across six movie genres, showing the percentage of titles falling into five rating brackets from below 5.0 to above 8.5. The data is loaded from a CSV file and rendered as horizontal bars using D3 v7’s stack and scaleOrdinal APIs. The code employs d3.axisBottom, d3.scaleBand, and d3.scaleLinear for scaling and axes, with CSS-based tooltips providing interactive hover details for each genre and rating segment.

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