Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity8_Task2

Public visualization

Activity8_Task2

0 stars0🌍 Public
WWilliam Nsambu
Last edited Apr 13, 2024
Created on Apr 13, 2024

A stacked horizontal bar chart displays the distribution of IMDb movie ratings across six genres, with each bar segmented into five rating brackets from "below 5.0" to "above 8.5" and labeled with the percentage each segment represents. The visualization uses d3.stack() to compute the stacked series, d3.scaleBand() for the genre categories on the y-axis, and d3.scaleLinear() for the percentage scale on the x-axis. Interactive tooltips appear on mouseover, showing the exact percentage for a specific genre and rating bracket, with the data loaded from a CSV file and rendered as SVG elements.

AI-generated description

Task 2 Q1

Comments

Sign in to join the discussion.

MIT Licensed