Skip to main content
100%

Aadesh Question 2 Activity 6

✓ Published0🌍 Public
Aaadesh.pranesh@gmail.com
Last edited Apr 11, 2024
Created on Apr 11, 2024
Forked from Question 2 Aadesh

This stacked bar chart shows how rating levels distribute across six lifestyle categories, with each bar divided into segments representing the percentage of ratings below 5.0, 5.0–6.5, 6.5–7.5, 7.5–8.5, and above 8.5, summing to 100% per category. The chart uses d3.stack() to compute the stacked series, d3.scaleBand() for the categorical y-axis, and d3.scaleLinear() for the percentage x-axis. Hover interactions trigger a custom tooltip that displays the exact percentage for each rating segment. Data comes from a CSV file with pre-aggregated proportions, and the visualization is rendered as SVG using D3 v7.

AI-generated description

The impact of genre on movie ratings

The stacked bar chart presents the impact of different categories on the distribution of rating levels. Each bar represents a category, and the sections within the bars show the percentage of each rating level within that category. The total percentage across all rating levels within a category sums to 100%.

MIT Licensed

Similar vizzes