Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity6-Task2

Public visualization

Viewing a saved revision (read-only)

03e741b12e294c7dac571afb02943832

Activity6-Task2

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

This stacked bar chart shows the percentage distribution of IMDb movie ratings across six genres, with each bar segmented into five rating levels from "below 5.0" to "above 8.5." The visualization uses d3.stack() to compute the stacked segments, d3.scaleBand() for genre positioning, and d3.scaleLinear() for the percentage axis. Hovering over any segment displays a tooltip with the exact percentage for that rating level within the selected genre. Colors are assigned via d3.scaleOrdinal() with an array of five categorical colors, and all elements are rendered as SVG.

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.