Skip to main content
Public

Share visualization

Loading preview…

Activity_7.1

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.1

0 stars0Public
Ddabbararakshitha@gmail.com
Last edited Apr 11, 2025
Created on Apr 11, 2025
Forked from Hello VizHub

This example shows a pie chart of survey responses by age group. The chart is built with d3.pie() and drawn with d3.arc(), colored using d3.scaleOrdinal() with the d3.schemeCategory10 palette. Each slice is labeled with its age group, and a legend on the upper left matches colors to categories. Data is loaded asynchronously from a remote JSON file using d3.json(). The visualization is rendered as SVG within a fixed 500 by 400 pixel viewport, with all graphical elements customized through D3’s selection and attribute methods.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed