Skip to main content
100%

Tutorial-2

✓ Published0🌍 Public
Aaschowdary.shashi@gmail.com
Last edited Oct 20, 2024
Created on Oct 20, 2024
Forked from Hello VizHub

A stacked horizontal bar chart displays the percentage of IMDb ratings across different movie genres, with each bar segmented by rating category and colored via a categorical scale. The visualization loads data from a CSV file and uses D3 v7's `d3.stack`, `d3.scaleBand`, `d3.scaleLinear`, and `d3.scaleOrdinal` to render SVG rectangles. An interactive tooltip, implemented with D3 event handlers, shows exact percentages on mouseover.

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