Skip to main content
100%

Task 2 Question 2

✓ Published0🌍 Public
Sskykarthik97@gmail.com
Last edited Apr 11, 2024
Created on Apr 11, 2024
Forked from Hello VizHub

This stacked bar chart, rendered with SVG, visualizes the percentage distribution of rating levels across different movie genres. The chart uses a horizontal layout, with genres on the y-axis and percentage on the x-axis, and each bar is segmented by color to represent a specific rating, from "below 10" to "below10". The visualization employs D3.js (v7) APIs such as `d3.stack()`, `d3.scaleBand()`, and `d3.axisBottom()`. Interactive tooltips, displaying the precise percentage for each rating segment, appear on mouse hover, using raw CSV data for the calculation.

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%.

MIT Licensed

Similar vizzes