Task8_Tutorial2_HKK
✓ Published0🌍 Public
This example presents a horizontal stacked bar chart visualizing IMDb movie rating distributions across six genres. Each bar is segmented into five rating categories (from "below 5.0" to "above 8.5"), with segment lengths proportional to the percentage of movies in that category. The visualization uses D3.js v7, employing `d3.stack` to transform the tabular data into stacked series, `d3.scaleOrdinal` for category colors, `d3.axisBottom` and `d3.axisLeft` for axes, and SVG rectangles for rendering. Interactive mouseover tooltips display 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