Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Activity-6 (Task-2)

Public visualization

Fork of Activity-6 (Task-2)

0 stars1🌍 Public
Kkandulasunny17@gmail.com
Last edited Oct 22, 2024
Created on Oct 22, 2024
Forked from Activity-6

A stacked horizontal bar chart displays the percentage distribution of IMDb ratings across six movie genres, using five rating bands from "below 5.0" to "above 8.5" for documentary, drama, comedy, romance, animation, and action films. The chart is rendered as SVG with D3 v7, using `d3.stack()` to compute stacked series, `d3.scaleLinear` for the x-axis, `d3.scaleBand` for genres, and `d3.scaleOrdinal` for color mapping. Interactive tooltips appear on mouseover, showing exact percentages via `d3.format` and HTML div elements. Data originates from a local CSV file loaded 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.

Comments

Sign in to join the discussion.

MIT Licensed