Skip to main content
100%

Activity6_Task2

✓ Published3🌍 Public
Kkowshiksamudrala08@gmail.com
Last edited Apr 22, 2024
Created on Apr 13, 2024
Forked from Hello VizHub

This example visualizes IMDb movie ratings across six genres, displaying the percentage distribution of ratings in five categories using a stacked horizontal bar chart. The chart uses D3 v7 with SVG rendering, employing `d3.stack()` to compute stacked series, `d3.scaleBand()` for genre positioning on the y-axis, and `d3.scaleLinear()` for percentage values. Interactive tooltips appear on mouseover, showing the exact percentage for each rating category. Data comes from a local CSV file loaded with `d3.csv`.

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