Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Acitvity6_Tutorial2

Public visualization

Viewing a saved revision (read-only)

ac253fb989b541a3b1c7c1d914158897

Acitvity6_Tutorial2

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

This stacked bar chart shows the distribution of IMDb movie ratings across six genres, with each bar divided into five rating categories from "below 5.0" to "above 8.5" as proportions of total films. The visualization uses d3.stack() to compute the stacked segments, d3.scaleBand() for the genre categories, and d3.scaleLinear() for the percentage axis on a logarithmic-free linear scale. Hovering over any segment reveals a tooltip displaying the exact percentage for that genre and rating range. The data comes from a CSV file containing genre-wise rating proportions, rendered as SVG rectangles with a color scale distinguishing each rating band.

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.