Skip to main content
100%

activity6_task2

✓ Published0🌍 Public
Bbhavyamoturi2509@gmail.com
Last edited Apr 3, 2024
Created on Apr 3, 2024
Forked from Hello VizHub

This example visualizes the distribution of IMDb ratings across six movie genres using a stacked horizontal bar chart. Each bar shows the proportion of films within five rating brackets, from "below 5.0" to "above 8.5," with a tooltip displaying the exact percentage on hover. The code uses D3 v7 with `d3.stack` for chart construction and `d3.scaleOrdinal` for color mapping. Data is loaded from a CSV file, rendered as SVG, and styled with external CSS.

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