Task6_Tutorial
✓ Published0🌍 Public
This example visualizes IMDb movie ratings across different genres using a stacked horizontal bar chart. The chart displays the percentage distribution of ratings across five categories, from "below 5.0" to "above 8.5", for genres such as Documentary, Drama, Comedy, Romance, Animation, and Action. The implementation uses D3.js v7, loading the library via UNPKG, and leverages d3.stack for data transformation, d3.scaleBand for the categorical y-axis, and d3.scaleLinear for the continuous x-axis. Interactive tooltips appear on mouseover, showing the exact percentage for each rating segment.
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