Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity_6_2

Public visualization

Viewing a saved revision (read-only)

699307c4378a44b999fe1d8c2f62f046

Activity_6_2

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

This visualization presents a stacked bar chart showing the percentage distribution of movie ratings (from "one" to "five") across different genres, with each bar segment colored to represent a rating category. Hovering over any segment displays a tooltip with the precise percentage for that rating within the genre, and the total for each bar sums to 100%. Built with D3 v7, the chart uses `d3.stack()` to compute the stacked segments, `d3.scaleOrdinal` for color mapping, and `d3.scaleBand` for genre positioning on the y-axis. Data is derived from the included CSV file, rendered as SVG elements with 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.