Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity6_Task2

Public visualization

Viewing a saved revision (read-only)

043ca2bb28274c23a59447c5c85d37d6

Activity6_Task2

0 stars0🌍 Public
Aanish6005@gmail.com
Last edited Oct 21, 2024
Created on Oct 20, 2024
Forked from Hello VizHub

A divergent stacked bar chart shows the distribution of IMDb ratings by genre, with each bar divided into five rating percentage categories from below 5.0 to above 8.5. The visualization uses D3.js version 7 via UNPKG, loading data from a CSV file. It employs `d3.stack()` for the stacked bar layout, `d3.scaleBand()` for the y-axis, `d3.scaleLinear()` for the x-axis, and `d3.scaleOrdinal()` with a custom color palette. Mouseover interactions trigger tooltips displaying the exact percentage for each rating category.

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.