🌍 Public
Viewing a saved revision (read-only)
0ca91edc86e241ad9a0b1bcb0247c3fa
Activity_6 Question_2
This visualization shows the percentage distribution of movie ratings across six categories, from “Below 5” to “Above 9,” for six films. Each horizontal bar is a stacked representation of the proportion of ratings per film. The code uses D3.js v7 with SVG rendering, employing `d3.stack()` to compute the stacked segments and `d3.scaleLinear` and `d3.scaleBand` for positioning. A tooltip displays the exact percentage of each rating category on hover, and a legend identifies the rating bands. The data derives from the provided CSV file.
AI-generated descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules. Here are finding the rating percentage for each films