🌍 Public
Viewing a saved revision (read-only)
0533e77358a4448997f771573bed2d63
Activity6_Task2
This bubble chart shows the distribution of movie ratings across different genres, with each genre represented as a horizontal stacked bar broken into five rating categories from below 5.0 to above 8.5. The chart uses D3 v7’s `d3.stack()` to compute the stacked segments and `scaleOrdinal` for category colors, rendering as SVG rectangles within a fixed 960×500 viewport. Mouse interactions trigger tooltips formatted with `d3.format('.2f')` to display the exact percentage value for each rating segment. The data comes from a CSV file containing proportional values per genre.
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.