Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

test

Public visualization

Viewing a saved revision (read-only)

840e3fa34dde45af83c7d820e7614314

test

0 stars0🌍 Public
SSeema Shrestha
Last edited Apr 11, 2024
Created on Apr 11, 2024
Forked from Activity 6_Task 2

A stacked bar chart displays the percentage distribution of IMDb ratings across movie genres, showing how rating levels vary by genre. The chart uses a diverging color scheme and horizontal bars, with each genre represented as a segmented bar totaling 100%. Hovering over a segment reveals a tooltip with the exact percentage for that rating level. The visualization is built with D3.js v7, using `d3.stack()` for data stacking, `d3.scaleOrdinal()` for colors, and `d3.axisBottom()` for the percentage axis. Data comes from a CSV file processed with `d3.csv()`.

AI-generated description

The impact of genre on movie ratings

This stacked bar chart gives the percentage of each rating level within different movie genres. The aim is to show the impact of genre on movie ratings. When the mouse hovers over each bar, you can see pop-ups of accurate percentage of each rating level within each genre. Total percentage is 1, representing 100%.