Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Hello VizHub

Public visualization

Viewing a saved revision (read-only)

3cab4e218e224efb9795bf70334eca57

Fork of Hello VizHub

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

This stacked bar chart shows the percentage distribution of movie ratings across different genres, with each bar segment representing a rating category from "below 5.0" to "above 8.5." Hovering over a segment reveals its exact percentage via a tooltip. The visualization uses D3 v7 with `d3.stack()` to create the stacked layout, `d3.scaleBand()` for genre positioning, and `d3.scaleLinear()` for percentage values. Data comes from a CSV file loaded dynamically, rendered as SVG with custom styling and 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.