Skip to main content
Public

Share visualization

Loading preview…

Activity6_Task2_Q2

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_Q2

0
Aanish6005@gmail.com
Last edited Oct 21, 2024
Created on Oct 21, 2024
Forked from Hello VizHub

This stacked bar chart displays the distribution of movie ratings across five Prabhas films (Saaho, RadheShyam, Adipurush, Salaar, and Kalki2898AD), broken down by percentage ranges from 1.0-2.0 to 4.0-5.0. Each bar segment uses a distinct color from a categorical scale, with tooltips showing exact percentages on hover. The chart loads data from a CSV file using D3 v7, employs `d3.stack()` for stacking, `d3.scaleBand()` and `d3.scaleLinear()` for axes, and renders as SVG with an interactive legend.

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.

Comments

Sign in to join the discussion.

MIT Licensed