Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity6_Task2_Tutorial

Public visualization

Viewing a saved revision (read-only)

8560a1ac3c7a4c1db4ddccbd2fc6418e

Activity6_Task2_Tutorial

0 stars2🌍 Public
Oorusushanth2002@gmail.com
Last edited Apr 1, 2025
Created on Apr 1, 2025

This stacked bar chart shows the distribution of movie ratings across six genres, breaking down each genre’s percentages into five rating categories from "below 5.0" to "above 8.5." The visualization uses D3 v7’s `d3.stack` and `d3.scaleBand` to create the horizontal stacked bars, with a custom tooltip revealing precise percentage values on mouseover. Data is pulled from a CSV file containing proportional genre-rating combinations. The chart is rendered as SVG, with axis labels and a legend styled via external CSS, and uses `d3.scaleLinear` for the percentage axis.

AI-generated description