Pie Chart
A donut or pie that shows how one total splits into a few shares, with an optional figure in the hole.
Paste this into your agent.
Pie Chart suits storage usage, plan mix or traffic split, where there are only a few parts of one whole. The donut can show a total in its centre and an unfilled remainder share.
Install
bashnpx shadcn@4.18.0 add @siteplane/pie-chart
Import it from @/siteplane/components/pie-chart. The project needs Siteplane UI's one-time setup first: .
When to pick it
- vs : Pick Bar Chart when there are more than five or six shares or values need precise comparison.
- vs : Pick Bar List for a ranked breakdown that reads better as rows.
Rules
- Pass
dataitems with a stableid, alabeland avalue, plus a required chartlabel. - Mark the unused remainder with
emptyso it takes the neutral colour. - Show a total with
centerValueandcenterLabel(format withcenterFormat), or pass short customcentercontent. - Choose the data order: the chart draws slices in array order, starting at the top and going clockwise.
- Leave room around the chart when
popOutis on, because the active share steps up to 10 px outside its box.
Reference
Add to your agent
Print this skill from the terminal, or connect the whole catalog over MCP. Setup guides
CLI
MCP server
Questions
Related skills
Better Colorsby jakubkrehel
OKLCH color space for web projects. Convert hex/rgb/hsl to oklch, generate palettes, check contrast, handle gamut boundaries, and theme with Tailwind v4. Triggers on oklch, color conversion, palette generation, contrast ratio, gamut, display p3, design tokens, hue drift, chroma, dark mode colors.
VisualExternalGitHub stars: 9.2K
Better Interfaceby jakubkrehel
Run a holistic interface review across accessibility, layout, writing, typography, color, and visual polish.
VisualExternalGitHub stars: 9.2K
Better Typographyby jakubkrehel
Web typography from choosing fonts to spacing, wrapping and accessibility. Use when picking or pairing typefaces, configuring variable fonts or OpenType features, setting up a type scale, styling text in components, truncating text, styling underlines, selection, placeholders or carets, or reviewing frontend code for typography. Triggers on typography, fonts, font formats, woff2, variable fonts, font-weight, opentype, font-feature-settings, letter-spacing, line-height, type scale, tabular numbers, text-wrap, truncation, line clamp, underlines, text-decoration, text selection, iOS input zoom, font smoothing, text contrast, measure, line length, text-box, smart punctuation, drop cap.
TypographyExternalGitHub stars: 9.2K
Color Contrast for Taste, Not Just Complianceby UI Skillbook
Use accessible contrast ratios as a floor, then build restrained hierarchy on top of them rather than treating them as the whole job.
Visual