Skip to main content
100%

Activity 7 Task 2

✓ Published0🌍 Public
AArun Pratap
Last edited Jul 10, 2023
Created on Jul 10, 2023
Forked from Hello VizHub

A stacked horizontal bar chart displays the percentage distribution of movie ratings across six genres, using data from a CSV file. The visualization uses D3 v7's `d3.stack`, `d3.scaleOrdinal`, and `d3.scaleBand` to render SVG rectangles, with a color scale distinguishing five rating categories. Interactive tooltips appear on mouseover, showing the exact percentage for each rating segment. The chart includes labeled axes, a legend, and a title.

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