Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

task_2 sekhar

Public visualization

Viewing a saved revision (read-only)

fda7a94d38a548c5b32eedd5b727c365

task_2 sekhar

0 stars0🌍 Public
SSekharofficial2022@gmail.com
Last edited Apr 4, 2024
Created on Apr 4, 2024
Forked from Hello VizHub

This chart shows the distribution of IMDb movie ratings across six genres, with each horizontal bar segmented into five rating brackets. The visualization uses diverging stacked bars to compare the proportion of films in each category, rendered as SVG rectangles scaled by percentage. The code leverages D3 v7’s `scaleOrdinal` for color mapping, `scaleBand` for the genre axis, and `stack` to compute cumulative values. Interactive tooltips display exact percentages on hover, using D3’s event handling and DOM selection.

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.