Skip to main content
Public

Share visualization

Loading preview…

Activity 6 task 2

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

Activity 6 task 2

1
SSuneelKalva@my.unt.edu
Last edited Apr 6, 2025
Created on Apr 6, 2025
Forked from Hello VizHub

This example displays a stacked bar chart showing the percentage distribution of IMDb rating categories across six movie genres. The chart reveals that documentaries and dramas have higher shares of strong ratings, while action and comedy films skew toward lower rating brackets. Built with D3.js (v7) and rendered as SVG, the visualization uses `d3.stack()`, `d3.scaleOrdinal()`, and `d3.axisBottom()` to compose the bars. Hovering over a segment triggers an HTML tooltip showing the precise percentage for that genre-rating pair, formatted with `d3.format()`. The data comes from a CSV file with pre-aggregated proportions per genre.

AI-generated description

The impact of genre on movie ratings

This stacked bar chart gives the percentage of each rating level within different movie genres. The aim is to show the impact of genre on movie ratings. When the mouse hovers over each bar, you can see pop-ups of accurate percentage of each rating level within each genre. Total percentage is 1, representing 100%.

Comments

Sign in to join the discussion.

MIT Licensed