Skip to main content
Public

Share visualization

Loading preview…

Fork of Labels

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

Fork of Labels

0
PPiotr Paszek
Last edited Jul 23, 2021
Created on Jul 23, 2021
Forked from Labels

A donut chart with three slices displays hardcoded apple counts, with each slice filled by a distinct image pattern loaded from external URLs via SVG `<pattern>` elements. Labels showing the numeric values are positioned outside the pie's outer radius, and thin black pointer lines with circular markers connect each label to its corresponding slice. The visualization is built with D3 v6, using `d3.pie`, `d3.arc`, and `d3.scaleOrdinal` with an interpolated color ramp, while the pointer paths are drawn by manually computing angular positions and SVG path commands.

AI-generated description

Donut chart labels outside the chart

Comments

Sign in to join the discussion.

MIT Licensed