Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

tutorial 2

Public visualization

Viewing a saved revision (read-only)

ece6b895aa7b4ae4b847e70fa47ceddd

tutorial 2

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

This example visualizes the distribution of IMDb movie ratings across six genres using a stacked horizontal bar chart. Each bar segment represents the percentage of movies falling into one of five rating bands, from below 5.0 to above 8.5. The chart is built with D3 v7, using `d3.stack` to compute the cumulative values and `d3.scaleOrdinal` for color coding. The SVG rendering includes axis labels and a tooltip that reveals the exact percentage for a rating band on mouseover. Data is loaded from an included CSV file.

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.