Skip to main content
Public

Share visualization

Loading preview…

Activity 7 Q1

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 7 Q1

0
Ppuppireddyarchana@gmail.com
Last edited Apr 10, 2025
Created on Apr 10, 2025
Forked from Hello VizHub

This D3.js pie chart displays the box office collections (in ₹ Cr) for Mahesh Babu movies. It uses `d3.pie()` to compute the arc segments and `d3.arc()` with an inner radius of zero for the slices. A color scale from `d3.scaleOrdinal` with the `d3.schemeSet2` range fills each slice, and percentage labels are positioned using `arc.centroid()`. A legend, built with SVG rectangles and text, identifies each movie, with data loaded via `d3.json`. The chart is rendered as an SVG, and the title, labels, and legend are all part of the same SVG canvas.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed