Skip to main content
Public

Share visualization

Loading preview…

Pie Chart

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

Pie Chart

1
SSrilekha24
Last edited Mar 27, 2022
Created on Mar 27, 2022

This interactive pie chart visualizes the top 10 best-selling books, displaying the relative share of sales (in thousands) for each country. Built with D3 v5 and rendered as SVG, it uses the `pie` layout and `arc` generator to create the chart's segments. The visualization includes a custom legend and data labels, with colors mapped via `scaleOrdinal`. The data is fetched from a remote CSV file using D3's `csv` function, and the project imports specific modules like `select`, `arc`, and `format` to handle rendering.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed