Skip to main content
Public

Share visualization

Loading preview…

task-2Activity-6

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

task-2Activity-6

0
Vvaishnavi6gan@gmail.com
Last edited Apr 3, 2024
Created on Apr 3, 2024
Forked from Hello VizHub

This stacked bar chart displays the distribution of IMDb movie ratings across six genres, showing the percentage of films falling into five rating brackets from “below 5.0” to “above 8.5.” The visualization uses d3.stack() to compute stacked series, d3.scaleBand() for the genre categories on the y-axis, and d3.scaleLinear() for the percentage values on the x-axis. Hovering over a segment reveals a tooltip with the precise percentage for that genre and rating range, using event listeners and d3.format() for numeric output. Data is loaded from a CSV file and rendered as SVG rectangles.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed