Skip to main content
Public

Share visualization

Loading preview…

Activity6_Task2

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

Activity6_Task2

0
Rragasrikakarla27@gmail.com
Last edited Oct 30, 2025
Created on Oct 30, 2025
Forked from Activity6_Task2

This example visualizes the distribution of IMDb movie ratings across different genres, using a 100% stacked horizontal bar chart. Each genre (Documentary, Drama, Comedy, etc.) is represented by a bar composed of segments corresponding to rating categories (below 5.0 to above 8.5), with segment lengths proportional to the percentage of movies in that rating band. Rendered as an SVG using D3 v7, the chart employs `d3.stack()` to compute the stacked segments, `d3.scaleBand` for the y-axis genres, and `d3.scaleLinear` for the x-axis percentages. A tooltip displays the exact percentage when hovering over a segment, and the data is loaded from `data.csv`.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed