Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity6_Task2

Public visualization

Viewing a saved revision (read-only)

035f36a272704feca8af054d7235d271

Activity6_Task2

0 stars0🌍 Public
Llikhitha.sarahah01@gmail.com
Last edited Oct 19, 2024
Created on Oct 19, 2024
Forked from Hello VizHub

This stacked bar chart shows the percentage distribution of five IMDb rating categories within six movie genres, revealing how genre influences ratings. The chart uses d3.stack() to create horizontal stacked bars, with colors from a d3.scaleOrdinal() scale distinguishing rating levels. Hovering over a bar segment triggers a tooltip displaying the precise percentage. Data comes from a CSV file, rendered as SVG, with axes and labels formatted using the d3.axisBottom and d3.axisLeft functions.

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.