Fork of Fork of task 8 question 2
✓ Published1🌍 Public
This stacked bar chart visualizes the distribution of movie ratings across five genres using percentage data from a CSV file. The D3 v7 code employs `d3.stack()` to compute stacked segments and `d3.scaleOrdinal` with custom color ranges to differentiate rating categories. SVG rendering displays horizontal bars, with `d3.axisBottom` and `d3.axisLeft` providing scales. Interactive tooltips appear on mouseover, showing the exact percentage for each genre-rating combination, while the chart includes a title, axis labels, 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