Skip to main content
100%

Question 2.3

✓ Published0🌍 Public
AAkhileshVadlakonda@my.unt.edu
Last edited Oct 20, 2024
Created on Oct 20, 2024
Forked from Hello VizHub

This example visualizes IMDb movie ratings across six music genres, showing the percentage distribution of ratings in five categories from "below 5.0" to "above 8.5" using a stacked horizontal bar chart. The chart is rendered as SVG with D3 v7, using `d3.stack()` to create stacked bars, `d3.scaleBand()` and `d3.scaleLinear()` for axes, and `d3.scaleOrdinal()` for color encoding. Interactive tooltips appear on mouseover via D3 event handlers, displaying the exact percentage for each segment. The data comes from a local CSV file loaded through `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