Skip to main content
๐ŸŒ Public

Share visualization

Send this visualization to others.

Activity6_Task6

Public visualization

Activity6_Task6

0 stars1๐ŸŒ Public
Mmasters200128@gmail.com
Last edited Apr 14, 2024
Created on Apr 14, 2024
Forked from Hello VizHub

This visualization uses stacked horizontal bar charts to display the distribution of IMDb movie ratings across different genres. Each bar segment represents the percentage of movies within a specific rating range (below 5.0 through above 8.5), with the full bar showing the complete proportional breakdown for each genre. The chart is rendered as SVG using D3 v7, where `d3.scaleOrdinal` assigns colors to rating categories and `d3.stack()` computes the stacked segments. Mouse interactions trigger a tooltip that displays the exact percentage for each rating category. The data comes from a CSV file specifying genre and rating fractions.

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.

Comments

Sign in to join the discussion.

MIT Licensed