Activity6_Task2
✓ Published0🌍 Public
This example visualizes IMDb movie ratings across six genres, showing the percentage distribution of ratings in five categories from “below 5.0” to “above 8.5” using stacked horizontal bars rendered as SVG rectangles. The chart loads D3 v7 via UNPKG, uses `d3.stack()` to compute stacked segments, and applies `d3.scaleBand()` for the categorical genre axis and `d3.scaleLinear()` for the percentage axis. The code also demonstrates custom tooltips with mouseover/mousemove/mouseout events and uses `d3.axisLeft()` and `d3.axisBottom()` for axes, with data sourced from a CSV file.
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