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 percentage of movies falling into five rating categories, from below 5.0 to above 8.5, with each genre represented as a single bar composed of color-coded segments. The visualization uses d3.stack to transform the data, d3.scaleOrdinal for coloring, and d3.scaleBand and d3.scaleLinear for positioning. Interactive tooltips appear on mouseover, revealing exact percentages for each rating segment within a genre. Data comes from a CSV file loaded via d3.csv.
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