Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activiry6_Task2

Public visualization

Viewing a saved revision (read-only)

e91180fed4434bdfaa9f01d16d95d6ec

Activiry6_Task2

0 stars2🌍 Public
AAnirudhaKulakarniKaranam@my.unt.edu
Last edited Apr 2, 2024
Created on Apr 2, 2024
Forked from Hello VizHub

This stacked bar chart shows the percentage distribution of IMDb ratings across six movie genres. The horizontal bars are segmented into five rating categories, from "below 5.0" to "above 8.5", with each genre’s total summing to 100%. The visualization reveals how different genres skew toward higher or lower ratings. The chart is rendered as an SVG using D3 v7. The code uses `d3.stack()` to create the stacked segments and `d3.scaleOrdinal` for color mapping. Interactive tooltips appear on mouseover, displaying the precise percentage for each rating segment. The data comes from a CSV file containing genre and rating percentage columns.

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.