Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity 6_Task2

Public visualization

Viewing a saved revision (read-only)

9e825ef1b1ca49c28189f8971423d939

Activity 6_Task2

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

A stacked bar chart displays the percentage distribution of IMDb movie ratings across six genres, using a divergent color scale for five rating categories from "below 5.0" to "above 8.5". Hovering over any segment reveals an exact percentage via a tooltip. Built with d3.v7, the chart uses `d3.stack()` for stacking, `d3.scaleBand()` for genres, and `d3.scaleLinear()` for percentages, with data from the provided CSV. The SVG render includes axis labels, a title, and interactive mouseover 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.