Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity 6, Task-2

Public visualization

Viewing a saved revision (read-only)

6275f38408f84e43abdf11da03681d1a

Activity 6, Task-2

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

A stacked horizontal bar chart displays the percentage of movies across six genres, broken into five rating categories from “below 5.0” to “above 8.5.” Each genre row uses a color-coded segment for each rating bin, with hover tooltips revealing exact percentages. The chart is built with D3 v7, using `d3.stack()` to compute stacked series, `d3.scaleBand` for the y-axis, and `d3.scaleLinear` for the x-axis. Data comes from the local `data.csv` file, rendered as SVG with axes, labels, and interactive mouse events.

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.