Activity6_Task2
✓ Published0🌍 Public
This example displays the distribution of movie ratings across six genres, using proportional segments to compare the share of films in five rating bands from below 5.0 to above 8.5. The visualization loads data from a CSV file and renders the genre-ratio relationships as horizontal stacked bars, with each band’s width reflecting its proportion. The code imports D3 via `d3.v5` from UNPKG and uses the `select` API to update a DOM element with a greeting message, while the chart itself relies on the parsed CSV data to derive the displayed values. The page also demonstrates local ES6 module imports for a simple text message.
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