Activity 6_Tutorial 2
✓ Published0🌍 Public
This example displays a horizontal stacked bar chart for movie genres, showing the proportional distribution of ratings from “below 5.0” to “above 8.5.” Each genre row is split into colored segments based on data from the CSV file, with the longest segment indicating the most common rating range for that genre. The visualization is built with D3 v5, loaded through UNPKG, and uses the `select` API to target the DOM element, while the chart’s rendering logic is implemented in the accompanying JavaScript code.
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