Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

activity6_task2

Public visualization

Viewing a saved revision (read-only)

3ac4d6e2a3f746dfb2160c85c47e7a1c

activity6_task2

0 stars0🌍 Public
Mm.maanvireddt761@gmail.com
Last edited Oct 22, 2024
Created on Oct 22, 2024
Forked from Hello VizHub

A stacked bar chart displays the percentage of movie ratings across five genres, with each bar segmented by rating categories from below 5.0 to above 8.5. The chart uses d3.stack and d3.scaleOrdinal with a custom color palette to build the SVG visualization. Hovering over a segment triggers a tooltip showing the precise percentage for that rating level within the genre. The data originates from a CSV file loaded with d3.csv, and the axes use d3.axisLeft and d3.axisBottom with a linear scale for percentages and a band scale for genres.

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.