Skip to main content
100%

question 3

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

This example shows the distribution of IMDb ratings across six movie genres, broken into five rating bands from “below 5.0” to “above 8.5” as proportions of each genre’s total. A stacked bar chart uses `d3.stack` to layer the segments, with `d3.scaleBand` for genres on the y-axis and `d3.scaleLinear` for percentages on the x-axis. Hovering over any segment displays a tooltip, built with D3’s selection and transition methods, showing the exact genre and percentage. The data comes from a local CSV file, and the visualization renders as SVG with a legend positioned to the right.

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