Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity6_Task2.1

Public visualization

Viewing a saved revision (read-only)

6a491fd9b26144c8810b372f280e2b01

Activity6_Task2.1

0 stars0🌍 Public
Ss.harshinisai01@gmail.com
Last edited Apr 11, 2024
Created on Apr 11, 2024
Forked from Hello VizHub

This example visualizes IMDb movie ratings across six genres using a stacked horizontal bar chart, showing the percentage distribution of ratings across five score categories from below 5.0 to above 8.5. The chart uses D3 v7's `d3.stack()` to compute stacked series and `d3.scaleOrdinal` with a custom color palette to distinguish rating categories. Interactive tooltips appear on mouseover using D3 event handlers, displaying the exact percentage for each genre and rating segment. The data is loaded from a CSV file and rendered as SVG elements within a 960x500 viewport.

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.