Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity6_Task2

Public visualization

Viewing a saved revision (read-only)

2e9fe63774f1404aa2efee374a10a7fa

Activity6_Task2

0 stars0🌍 Public
Aaravapalliharika2002@gmail.com
Last edited Oct 22, 2024
Created on Oct 22, 2024
Forked from Hello VizHub

This stacked bar chart visualizes the distribution of IMDb movie ratings across six genres, showing the proportion of films falling into five rating brackets from below 5.0 to above 8.5. Each genre’s horizontal bar is segmented by color, with hover tooltips revealing exact percentages. The visualization uses D3.js v7 with SVG rendering, employing `d3.stack()` for data transformation, `d3.scaleLinear()` and `d3.scaleBand()` for axes, and `d3.scaleOrdinal()` for color mapping. Data comes from a CSV file, and the chart includes custom fonts and styling via 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.