Skip to main content
100%

Activity6_Task2

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

This stacked horizontal bar chart visualizes the distribution of IMDb ratings across six genres, with percentages segmented into five rating bins from below 5.0 to above 8.5. The chart uses d3.stack and d3.scaleOrdinal with a custom color palette to display proportional segments within each genre bar. SVG rendering powers the visualization, with d3.axisBottom and d3.axisLeft for scales, and mouseover events trigger tooltip updates showing exact percentage values. The data originates from a local CSV file read directly in the script.

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