Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity6_Task2

Public visualization

Activity6_Task2

0 stars2🌍 Public
HHema Tummapala
Last edited Oct 23, 2024
Created on Oct 22, 2024
Forked from Hello VizHub

This visualization shows the proportion of IMDb movie ratings across six genres, with each genre displayed as a horizontal stacked bar chart. The bars are segmented by five rating categories, from "below 5.0" to "above 8.5", allowing comparison of rating distributions between genres. The chart uses D3.js v7 to load CSV data, stack the percentage values via `d3.stack()`, and render the visualization as SVG. Hovering over a segment triggers a tooltip showing the exact percentage for that rating category. The code employs `d3.scaleLinear`, `d3.scaleBand`, and `d3.axisBottom` for scales and axes, with colors assigned via a categorical scale.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed