Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity6_Que2

Public visualization

Viewing a saved revision (read-only)

eb7e43a4af194ccc9eb77214a724e2fd

Activity6_Que2

0 stars0🌍 Public
Rrakesh.kavuru@outlook.com
Last edited Apr 5, 2024
Created on Apr 5, 2024
Forked from Hello VizHub

This stacked bar chart shows the percentage distribution of five IMDb rating levels (below 5.0 to above 8.5) across six product categories, illustrating how category influences ratings. Each horizontal bar represents one category, with colored segments for each rating range. Hovering over a segment displays an exact percentage via a tooltip implemented with D3 event handlers. The visualization uses d3.stack() to generate stacked data, d3.scaleOrdinal for colors, d3.scaleLinear for percentages, and d3.scaleBand for categories, rendering as SVG with axes from d3.axisBottom and d3.axisLeft.

AI-generated description

The impact of category on ratings

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