🌍 Public
Viewing a saved revision (read-only)
3d56ba2153094de98e95fa732b9a6729
Activity 6_Task 2
This stacked bar chart visualizes the percentage distribution of IMDb movie ratings across six genres, showing how genre influences rating outcomes. Each bar represents a genre and is divided into five rating categories, from below 5.0 to above 8.5, with tooltips revealing exact percentages on hover. The visualization uses d3.stack to structure the data, d3.scaleBand for the y-axis, and d3.scaleLinear for the x-axis, rendering SVG rectangles. Data comes from the embedded CSV file, and d3.format displays percentage values with two decimal places.
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.