activity 6- Q2
✓ Published0🌍 Public
This stacked bar chart displays the percentage distribution of IMDb ratings across six video game genres, with each bar segmented by rating bands from below 2.0 to above 8.5. The visualization uses d3.stack() to aggregate the data, d3.scaleOrdinal for color encoding, and d3.scaleBand for the categorical y-axis. Interactive tooltips appear on mouseover, showing the exact percentage for each rating segment, while the chart reads from a local CSV file. The SVG rendering employs d3.axisBottom and d3.axisLeft for axes with custom tick formatting.
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