Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

tutorial2

Public visualization

Viewing a saved revision (read-only)

9368992ee7c1473381e0e98bdb425c23

tutorial2

0 stars0🌍 Public
Ttsumanth619@gmail.com
Last edited Apr 4, 2024
Created on Apr 4, 2024
Forked from Hello VizHub

This stacked bar chart shows the distribution of IMDb ratings across six movie genres, with each bar representing the percentage of films falling into five rating bands from "Below 5.0" to "Above 8.5." Hovering over a segment displays an exact percentage in a tooltip. The visualization uses D3 v7’s `d3.stack()` to aggregate the data, `d3.scaleBand()` for the categorical genre axis, and `d3.scaleLinear()` for the numeric percentage axis, rendering as SVG with interactive mouse events.

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.