Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of task 8-part 2

Public visualization

Viewing a saved revision (read-only)

8dcc03db46f548fc921d1445c737e442

Fork of task 8-part 2

0 stars0🌍 Public
Bbhavithamanyam@gmail.com
Last edited Apr 14, 2024
Created on Apr 14, 2024

This stacked bar chart visualizes the impact of movie genre on ratings, showing the percentage distribution across five rating levels for each genre in the dataset. The chart uses the D3 v7 library to process data with `d3.stack()` and render SVG rectangles, with hover interactions displaying exact percentages via a custom tooltip. Ratings are encoded as stacked segments on a linear x-axis, while genres are positioned on a band scale y-axis, with an ordinal color scale distinguishing rating categories.

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.