Skip to main content
100%

Activity6_Task2

✓ Published0🌍 Public
Ppmanoj13053@gmail.com
Last edited Oct 22, 2024
Created on Oct 22, 2024
Forked from Hello VizHub

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 description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.
MIT Licensed

Similar vizzes