Skip to main content
100%

Activity 6 tutorial 2

✓ Published1🌍 Public
Kkaringusathwika@gmail.com
Last edited Apr 15, 2024
Created on Apr 15, 2024

This stacked bar chart shows the distribution of IMDb movie ratings across five genres, with each bar representing the percentage of movies falling into categories from 'below 5.0' to 'above 8.5'. Hovering over a segment displays a tooltip with the exact percentage. Built with D3.js v7, the visualization uses `d3.stack` for horizontal stacking, `d3.scaleBand` for the y-axis, and `d3.axisBottom` for the x-axis, rendering as SVG. Tooltips are implemented as HTML divs positioned via mouse events.

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