🌍 Public
Viewing a saved revision (read-only)
46a9eaebce514163973b77630c696b7c
TASK8_TUTORIAL2
A stacked bar chart displays the distribution of IMDb ratings across six movie genres, with each bar segmented into five percentage-based rating categories. Horizontal bars show how rating proportions vary by genre, using distinct colors for each rating range. The d3.stack() API constructs the stacked segments, while d3.scaleBand and d3.scaleLinear handle positioning. Hovering over any segment reveals a tooltip with the exact percentage for that genre-rating combination. The visualization renders as scalable vector graphics (SVG) and reads data from a CSV file containing genre and rating percentages.
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.