Skip to main content
100%

Activity6_Task2

✓ Published1🌍 Public
PPreethi Medepalli-91
Last edited Oct 22, 2024
Created on Oct 22, 2024
Forked from Hello VizHub

This example visualizes the distribution of IMDb movie ratings across six genres using a stacked horizontal bar chart. It loads data from a CSV file and uses d3.stack to create the stacked segments, with d3.scaleOrdinal assigning colors to rating categories. The chart includes axes, a title, and interactive tooltips that display the exact percentage for each rating band on mouseover, using d3.axisBottom and d3.scaleBand for layout.

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