Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity 6_Question 2

Public visualization

Viewing a saved revision (read-only)

615f38c545c2466697a6ecbfb96ff6e7

Activity 6_Question 2

0 stars0🌍 Public
MMonish Galla
Last edited Apr 6, 2024
Created on Apr 2, 2024
Forked from Hello VizHub

This stacked bar chart visualizes the distribution of movie ratings across six genres, using data from a CSV file. The chart shows the proportion of films falling into rating bands from "Below 5.0" to "Above 8.5" for each genre, with colors distinguishing the rating categories. Built with D3.js version 7, the visualization uses `d3.stack()` to create the stacked segments and `d3.scaleOrdinal` for color mapping. Hovering over any segment reveals an exact percentage via a tooltip, implemented with D3's mouseover 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.