🌍 Public
Viewing a saved revision (read-only)
5b59c5e9e9744edd94b4ae5d608ba67d
Activity_6_Task2_Tutorial
A stacked horizontal bar chart displays IMDb rating distributions across six movie genres, with five rating bands from below 5.0 to above 8.5. The chart uses d3.stack and d3.scaleBand to layer percentage values, with d3.scaleOrdinal assigning five colors to rating categories. Interactive tooltips reveal exact percentages on mouseover, while d3.axisBottom and d3.axisLeft render labeled axes. Data comes from a CSV file parsed directly, with all elements drawn as SVG rectangles.
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.