Activity6_Question-2
✓ Published0🌍 Public
This example visualizes the distribution of IMDb movie ratings across six music genres using a stacked bar chart. Each bar shows the proportional percentage of ratings falling into five categories, from below 5.0 to above 8.5, with colors distinguishing each rating band. The chart loads data from a local CSV file using d3.csv, employs d3.scaleBand for the genre axis and d3.scaleLinear for the percentage axis, and uses d3.stack to aggregate the rating categories. Interactive tooltips display the exact percentage for each segment on hover, while the SVG rendering includes custom axes and a legend.
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