Activity06 Question 2.3
✓ Published0🌍 Public
This stacked bar chart visualizes the distribution of IMDb-style movie ratings across six modes of transportation, with each bar segmented into five rating categories from “below 5.0” to “above 8.5.” Using D3 v7’s `d3.stack` and `d3.scaleBand`, the SVG rendering encodes each category’s proportion as a colored segment, with a legend inferred from the categorical color scale. Hovering over any segment triggers an opacity change and displays a tooltip showing the exact percentage, formatted via `d3.format`. The chart includes axes, gridlines, and titles, with data loaded from a local 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