Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity6_q2

Public visualization

Viewing a saved revision (read-only)

7e4993299c614ea59a39aaa6ecd3bb8d

Activity6_q2

0 stars0🌍 Public
Ssrilekhasridasyam@my.unt.edu
Last edited Apr 4, 2024
Created on Apr 4, 2024
Forked from Hello VizHub

This stacked bar chart visualizes the distribution of ratings across different movie genres, with each bar segment representing a rating category’s proportion of the total. The chart aims to show how ratings are composed within each genre, with hovering over a segment revealing the exact percentage via a tooltip. Built with D3 v7, the code uses `d3.stack()`, `d3.scaleLinear`, and `d3.scaleBand` to render the SVG, while `d3.axisBottom` and `d3.axisLeft` provide the axes. The data is loaded from a CSV file, and percent values are formatted with `d3.format`.

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.