Activity6_Task2
✓ Published0🌍 Public
This example visualizes the distribution of IMDb movie ratings across six genres using a stacked horizontal bar chart. The chart displays the proportion of films in each rating category, from below 5.0 to above 8.5, with genres ordered along the y-axis and percentage values on the x-axis. The code loads data from a CSV file, processes it with d3.stack, and renders the SVG using d3.scaleBand, d3.scaleLinear, and d3.scaleOrdinal. Interactive tooltips appear on mouseover to show exact percentages, implemented with D3 event handlers.
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.
MIT Licensed