🌍 Public
Viewing a saved revision (read-only)
843d42e3861e430eb244396b5861d55c
Activity 6
This gallery item uses D3 v5 to display a stacked bar chart of movie ratings across six genres, with proportions grouped into five bins from “below 5.0” to “above 8.5.” The data, loaded from a local CSV file, is rendered using D3’s `select` API to target the `#message` div, while the chart draws on the `d3.forceSimulation` layout. The example demonstrates importing D3 functions and local ES6 modules, with styling applied via an external CSS file. The visualization highlights how rating distributions vary by genre, from Action’s heavy low-score skew to Documentary’s more balanced spread.
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.