Skip to main content

Squillify development is paused indefinitely. Read why, and discover what this experiment achieved. Read the story

MicroSkills Reference

Pie chart

chart.pie

ProductionBounded custom (Class B)Deterministicstrictfastv1.0.0
No network

Overview

Render deterministic script-free Pie charts from exact decimal strings, with stable ordering, explicit emphasis and complete resolved part results. svg is a complete static, script-free chart. Mark highlight, the dotted guide, and the value panel are not in that SVG, and entry motion, focus, and updates stay inactive there. Pass the entire output.behavior.artifact unchanged to SquillifyChartRuntime.mount(container, artifact, options), then call the returned handle's replay() once to play the entry. A later value change uses update(nextArtifact, {intent}). Injecting svg directly leaves hover and motion off. Interaction is on by default for every host chart: after mount, pointer and keyboard focus open the value panel and the dotted guide. Set behavior.interaction.enabled to false to turn that off. motion.preset accepts only the family's entrance.

It preserves exact decimal semantics and refuses unreadable sectors.

Reliability

Identical resolved inputs produce byte-identical safe SVG.

Context footprint

You receive CHART_CAPACITY_EXCEEDED or CHART_OUTPUT_TOO_LARGE for bounded limits, CHART_THEME_UNKNOWN or CHART_DATA_SHAPE_INVALID for invalid requests, and CHART_UNSAFE_OUTPUT or CHART_OUTPUT_TOO_COMPLEX if we cannot produce a certified safe SVG. A successful call costs 3 execution credits.

When to use it

When every value is a positive part of one meaningful whole.

When values are independent, hierarchical, signed, or too numerous.

Scope

Note
A single bounded part-to-whole Pie composition from positive exact values.

Non-goals

  • Hierarchical containment
  • Negative or zero parts
  • Unbounded tiny slices

Properties

IdempotentRetry safeStreaming supportedFile input supportedRequires external service

Capabilities

generationimage-processing

Cost & billing

Flat rate per invocation

MetercallsBillable onsuccessCost per call3 credits

File handling

Accepts file_refProduces file_refMax input93.8 KB

How we handle your data

Sensitive output possible
What this means

This skill may receive sensitive content and may return submitted, transformed, extracted, or reformatted content.

Squillify guarantees
  • Runs inside Squillify
  • This skill runs inside Squillify.
  • Payloads are not sent to an external service by this skill.
  • Squillify does not permanently store submitted payloads.
  • Telemetry records metadata only, not submitted content.
  • Submitted payloads are not used for training.
  • Submitted payloads are not reviewed by humans.
  • This skill does not target sensitive data.
  • The response may contain submitted or transformed content.
Your responsibility

Squillify does not determine whether submitted content is sensitive. Your application is responsible for deciding what data it is allowed to submit. Your application is responsible for securing the response.

Read the Microskill Data Handling Policy

Input schema

FieldTypeRequiredDescription
partsarrayYesRequired 2..12 parts with unique id, bounded label, positive exact-decimal value string, optional meaning and none|highlight|explode emphasis.
orderstringNoinput|value_desc|value_asc; stable input-order ties; default input.
directionstringNoclockwise|counterclockwise; default clockwise.
startAngleintegerNoAngle in degrees within -360..360; default -90.
titlestringNoBounded visible title; omission renders no title.
subtitlestringNoBounded visible subtitle; omission renders no subtitle.
behaviorobjectNoOptional bounded host behavior request; omitted means static SVG. svg is a complete static, script-free chart. Mark highlight, the dotted guide, and the value panel are not in that SVG, and entry motion, focus, and updates stay inactive there. Pass the entire output.behavior.artifact unchanged to SquillifyChartRuntime.mount(container, artifact, options), then call the returned handle's replay() once to play the entry. A later value change uses update(nextArtifact, {intent}). Injecting svg directly leaves hover and motion off. Interaction is on by default for every host chart: after mount, pointer and keyboard focus open the value panel and the dotted guide. Set behavior.interaction.enabled to false to turn that off. motion.preset accepts only the family's entrance.
widthintegerNoCanvas width in pixels, 100..1600 (optional; default 720). Outside that range the request is refused as invalid input rather than clamped. The ceiling is the size a chart is read at — a full-HD dashboard or a report page; beyond it the canvas stops being what limits how much fits, and type sized for the canvas is illegible once the export is displayed smaller. It applies per side, so a tall portrait canvas for a long horizontal ranking is allowed.
heightintegerNoCanvas height in pixels, 100..1600 (optional; default 480). Outside that range the request is refused as invalid input rather than clamped. The ceiling is the size a chart is read at — a full-HD dashboard or a report page; beyond it the canvas stops being what limits how much fits, and type sized for the canvas is illegible once the export is displayed smaller. It applies per side, so a tall portrait canvas for a long horizontal ranking is allowed.
themestringNoVisual language: basic, modern or squillify (optional; default squillify). An unregistered value is rejected with the registered names listed — we never substitute silently.
surfacestringNoSurface the theme renders on: dark or light (optional; default light).
densitystringNoHow tightly the chrome is packed: compact, standard or spacious (optional; default standard). Density scales spacing only — it never lowers a legibility minimum.
visualProfilestringNoWhat the SVG promises about the host font: portable or certified (optional; default portable). The default is layout-deterministic and tolerates substitution; certified refuses text the certified metrics cannot fully measure.
styleobjectNoOptional bounded paint and typography styling; omit it to use the selected theme defaults. text.size is expressed in normalized design pixels at an 800-pixel reference width, so equivalent roles match at equal CSS width. It never changes data or accessibility. 'contract' selects the published semantics. 'tokens' sets design tokens; 'rules' applies typed properties to a role and optional series/category facets; 'palette' accepts a digest-checked palette; 'css' is a bounded post-layout stylesheet. The styleCapabilities section publishes this family's accepted roles, properties and copyable examples. For Bar, target one mark with role 'bar' plus seriesIndex and categoryIndex; categoryIndex alone targets that category across series. A minimal rule is {"target":{"role":"bar"},"set":{"paint.fill":"#2563eb"}}. Unsupported typed rules are refused; unsupported CSS is dropped and reported. Do not discover the grammar through trial calls: style validation failures are currently billable. Before calling, read this contract's styleSurface and styleCapabilities sections for the complete rule shape, accepted roles and properties, limits, and copyable examples.
outputobjectNoOutput scoping (optional). Nested key output.idNamespace ([a-z][a-z0-9-]{0,31}) is prefixed onto every generated element id when several charts share one host document; omit for a standalone chart. An invalid namespace is rejected.

Output schema

FieldTypeRequiredDescription
svgstringYesFinal script-free canonical SVG. svg is a complete static, script-free chart. Mark highlight, the dotted guide, and the value panel are not in that SVG, and entry motion, focus, and updates stay inactive there. Pass the entire output.behavior.artifact unchanged to SquillifyChartRuntime.mount(container, artifact, options), then call the returned handle's replay() once to play the entry. A later value change uses update(nextArtifact, {intent}). Injecting svg directly leaves hover and motion off. Interaction is on by default for every host chart: after mount, pointer and keyboard focus open the value panel and the dotted guide. Set behavior.interaction.enabled to false to turn that off. motion.preset accepts only the family's entrance.
widthintegerYesResolved canvas width.
heightintegerYesResolved canvas height.
viewBoxstringYesRendered coordinate system.
partResultsarrayYesResolved-order parts with inputIndex, resolvedIndex, exact value and exact ratio.
renderSummaryobjectYesAlways-present bounded scalar summary of sectors actually drawn.
transformationSummaryobjectYesAlways-present bounded report of any label or layout adaptation.
behaviorobjectNoDigest-bound host-interactive artifacts when behavior is requested. svg is a complete static, script-free chart. Mark highlight, the dotted guide, and the value panel are not in that SVG, and entry motion, focus, and updates stay inactive there. Pass the entire output.behavior.artifact unchanged to SquillifyChartRuntime.mount(container, artifact, options), then call the returned handle's replay() once to play the entry. A later value change uses update(nextArtifact, {intent}). Injecting svg directly leaves hover and motion off. Interaction is on by default for every host chart: after mount, pointer and keyboard focus open the value panel and the dotted guide. Set behavior.interaction.enabled to false to turn that off. motion.preset accepts only the family's entrance.
styleReportobjectNoAlways reports the resolved typographyProfile and fontMetrics contract, plus tokensApplied, rulesApplied, typedRulesApplied, typedAssignmentsApplied, rulesDropped, declarationsDropped and, when anything was dropped, a bounded list of reasons.
warningsarrayNoPresent when the render succeeded with a known degradation. Each entry is an object with a stable code, a message and details. Every chart can emit FONT_SUBSTITUTION_POSSIBLE under visualProfile 'portable', FONT_GLYPH_UNMEASURED when a code point falls outside the certified metrics, and CHART_STYLE_PARTIALLY_APPLIED when part of your styling was dropped — styleReport then names which part and why. Codes are stable for agent routing. Pie refuses unreadable or non-positive parts rather than silently hiding them.

API contract

POST /v1/execute
curl
curl -sS -X POST "$BASE/v1/execute" \
  -H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \
  -d '{"skillKey":"chart.pie","input":{"parts":[{"id":"a","label":"A","value":"60"},{"id":"b","label":"B","value":"40"}]}}'
Integrations
TypeScript SDK
import { Squillify } from "@squillify/sdk";

const sq = new Squillify({ apiKey: process.env.SQUILLIFY_API_KEY });

const { output } = await sq.execute("chart.pie", {"parts":[{"id":"subscriptions","label":"Subscriptions","value":"72"},{"id":"services","label":"Services","value":"28"}],"title":"Revenue mix"});

Errors

CodeHTTPRetryableDescription
VALIDATION_ERROR400NoThe request payload failed schema validation.
UNAUTHORIZED401NoMissing or invalid API key.
SKILL_NOT_ACCESSIBLE403NoThe API key is not granted access to this skill.
SKILL_NOT_AVAILABLE_FOR_PLAN403NoThis skill is not included in your current plan.
PLAN_ELIGIBILITY_UNAVAILABLE503YesPlan eligibility could not be decided. Retry after backoff.
SKILL_NOT_FOUND404NoThe requested skill or version does not exist.
TENANT_RATE_LIMITED429YesRequest rate limit exceeded. Retry after backoff.
QUOTA_EXCEEDED429YesPlan quota exhausted. Retryable once the quota period resets.
EXECUTION_TIMEOUT504YesExecution exceeded the allowed time budget.
CHART_CAPACITY_EXCEEDED429NoA size, quota, rate, or time limit was exceeded.
CHART_OUTPUT_TOO_LARGE429NoA size, quota, rate, or time limit was exceeded.
CHART_THEME_UNKNOWN400NoThe request payload failed this skill's input validation.
CHART_DATA_SHAPE_INVALID400NoThe request payload failed this skill's input validation.
CHART_UNSAFE_OUTPUT500NoThe skill encountered an unexpected execution failure.
CHART_OUTPUT_TOO_COMPLEX500NoThe skill encountered an unexpected execution failure.

Other limits

LimitValue
Recommended inline bytes32 KiB

Limitations

  • Hierarchical containment
  • Negative or zero parts
  • Unbounded tiny slices
  • Many categories
  • Comparing close values precisely
  • Nested rings

How to call

POST /v1/execute (requires authentication)

Request bodyjson
{
  "skillKey": "chart.pie",
  "input": {
    "parts": [
      {
        "id": "subscriptions",
        "label": "Subscriptions",
        "value": "72"
      },
      {
        "id": "services",
        "label": "Services",
        "value": "28"
      }
    ],
    "title": "Revenue mix"
  }
}

Examples

Revenue mix

Inputjson
{
  "parts": [
    {
      "id": "subscriptions",
      "label": "Subscriptions",
      "value": "72"
    },
    {
      "id": "services",
      "label": "Services",
      "value": "28"
    }
  ],
  "title": "Revenue mix"
}
Expected outputjson
{
  "transformationSummary": {
    "applied": false,
    "operations": [],
    "affectedCategoryCount": 0,
    "affectedPointCount": 0,
    "affectedLabelCount": 0
  },
  "viewBox": "0 0 720 480",
  "height": 480,
  "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"720\" height=\"480\" viewBox=\"0 0 720 480\" role=\"img\" class=\"sq-chart sq-chart--pie sq-family--radial sq-theme--squillify sq-surface--light sq-density--standard\" data-sq-style-contract=\"CHART_STYLE@1\" data-sq-chart=\"pie\" data-sq-family=\"radial\" data-sq-theme=\"squillify\" data-sq-theme-version=\"1\" data-sq-surface=\"light\" data-sq-density=\"standard\" data-sq-a11y-detail=\"full\" aria-labelledby=\"sq-13a0b6cda216-title-6 sq-13a0b6cda216-desc-7\"><title id=\"sq-13a0b6cda216-title-6\">Revenue mix</title><desc id=\"sq-13a0b6cda216-desc-7\">Pie chart. Total 100. Subscriptions 72 (72.00%). Services 28 (28.00%).</desc><style>.sq-chart{--sq-chart-axis:#c9d1df;--sq-chart-font-family:'Squillify Mono', 'IBM Plex Mono', monospace;--sq-chart-grid:#d8dee9;--sq-chart-surface:#ffffff;--sq-chart-text-muted:#667085;--sq-chart-text-primary:#101828;--sq-series-1:#2563eb;--sq-series-2:#6d5ce7;--sq-series-3:#168a5b;--sq-series-4:#c45412;--sq-series-5:#d92d20;--sq-series-6:#667085;font-family:var(--sq-chart-font-family);font-weight:500;}.sq-chart .sq-background{fill:var(--sq-chart-surface);}.sq-chart .sq-title{fill:var(--sq-chart-text-primary);}</style><defs><linearGradient id=\"sq-13a0b6cda216-gradient-0\" gradientUnits=\"objectBoundingBox\" x1=\"0\" y1=\"0\" x2=\"0\" y2=\"1\"><stop offset=\"0\" stop-color=\"#6f9bff\"/><stop offset=\"1\" stop-color=\"#c9d8ff\"/></linearGradient><linearGradient id=\"sq-13a0b6cda216-gradient-1\" gradientUnits=\"objectBoundingBox\" x1=\"0\" y1=\"0\" x2=\"0\" y2=\"1\"><stop offset=\"0\" stop-color=\"#a99cf8\"/><stop offset=\"1\" stop-color=\"#ded9ff\"/></linearGradient><linearGradient id=\"sq-13a0b6cda216-gradient-2\" gradientUnits=\"objectBoundingBox\" x1=\"0\" y1=\"0\" x2=\"0\" y2=\"1\"><stop offset=\"0\" stop-color=\"#54bc8b\"/><stop offset=\"1\" stop-color=\"#c8ebda\"/></linearGradient><linearGradient id=\"sq-13a0b6cda216-gradient-3\" gradientUnits=\"objectBoundingBox\" x1=\"0\" y1=\"0\" x2=\"0\" y2=\"1\"><stop offset=\"0\" stop-color=\"#f09a5b\"/><stop offset=\"1\" stop-color=\"#f7d4ba\"/></linearGradient><linearGradient id=\"sq-13a0b6cda216-gradient-4\" gradientUnits=\"objectBoundingBox\" x1=\"0\" y1=\"0\" x2=\"0\" y2=\"1\"><stop offset=\"0\" stop-color=\"#426cad\"/><stop offset=\"1\" stop-color=\"#b7c8e3\"/></linearGradient><linearGradient id=\"sq-13a0b6cda216-gradient-5\" gradientUnits=\"objectBoundingBox\" x1=\"0\" y1=\"0\" x2=\"0\" y2=\"1\"><stop offset=\"0\" stop-color=\"#98a2b3\"/><stop offset=\"1\" stop-color=\"#e4e7ec\"/></linearGradient></defs><rect x=\"0\" y=\"0\" width=\"720\" height=\"480\" fill=\"#ffffff\" class=\"sq-background\" data-sq-role=\"background\"/><g class=\"sq-plot\" data-sq-role=\"plot\"><path d=\"M 360 252 L 360 62 A 190 190 0 1 1 173.365 287.602 Z\" fill=\"url(#sq-13a0b6cda216-gradient-0)\" stroke=\"#ffffff\" stroke-width=\"1\" class=\"sq-mark sq-pie-sector\" data-sq-role=\"region\" data-sq-target-key=\"t-pie-e2c0f4baadeb29e0\" data-sq-category-index=\"0\" data-sq-palette-index=\"0\"/><path d=\"M 360 252 L 173.365 287.602 A 190 190 0 0 1 360 62 Z\" fill=\"url(#sq-13a0b6cda216-gradient-1)\" stroke=\"#ffffff\" stroke-width=\"1\" class=\"sq-mark sq-pie-sector\" data-sq-role=\"region\" data-sq-target-key=\"t-pie-d599b1c58b6bd488\" data-sq-category-index=\"1\" data-sq-palette-index=\"1\"/><text x=\"450.766\" y=\"326.089\" font-size=\"10\" text-anchor=\"middle\" fill=\"#101828\" class=\"sq-label sq-pie-label\" data-sq-role=\"category-label\" data-sq-category-index=\"0\">Subscriptions</text><text x=\"450.766\" y=\"340.089\" font-size=\"10\" text-anchor=\"middle\" fill=\"#101828\" class=\"sq-label sq-pie-value\" data-sq-role=\"value-label\" data-sq-category-index=\"0\">72.00%</text><text x=\"269.234\" y=\"175.911\" font-size=\"10\" text-anchor=\"middle\" fill=\"#101828\" class=\"sq-label sq-pie-label\" data-sq-role=\"category-label\" data-sq-category-index=\"1\">Services</text><text x=\"269.234\" y=\"189.911\" font-size=\"10\" text-anchor=\"middle\" fill=\"#101828\" class=\"sq-label sq-pie-value\" data-sq-role=\"value-label\" data-sq-category-index=\"1\">28.00%</text><text x=\"360\" y=\"28\" font-size=\"16\" text-anchor=\"middle\" fill=\"#101828\" class=\"sq-title\" data-sq-role=\"title\">Revenue mix</text></g></svg>",
  "width": 720,
  "renderSummary": {
    "skill": "chart.pie",
    "partCount": 2,
    "sectorCount": 2,
    "order": "input"
  },
  "partResults": [
    {
      "value": "72",
      "label": "Subscriptions",
      "inputIndex": 0,
      "resolvedIndex": 0,
      "id": "subscriptions",
      "ratio": "0.72",
      "meaning": "neutral",
      "emphasis": "none"
    },
    {
      "value": "28",
      "label": "Services",
      "inputIndex": 1,
      "resolvedIndex": 1,
      "id": "services",
      "ratio": "0.28",
      "meaning": "neutral",
      "emphasis": "none"
    }
  ]
}

Ordered allocation

Inputjson
{
  "parts": [
    {
      "id": "build",
      "label": "Build",
      "value": "3"
    },
    {
      "id": "run",
      "label": "Run",
      "value": "2"
    }
  ],
  "order": "value_desc"
}
Expected outputjson
{
  "transformationSummary": {
    "applied": false,
    "operations": [],
    "affectedCategoryCount": 0,
    "affectedPointCount": 0,
    "affectedLabelCount": 0
  },
  "viewBox": "0 0 720 480",
  "height": 480,
  "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"720\" height=\"480\" viewBox=\"0 0 720 480\" role=\"img\" class=\"sq-chart sq-chart--pie sq-family--radial sq-theme--squillify sq-surface--light sq-density--standard\" data-sq-style-contract=\"CHART_STYLE@1\" data-sq-chart=\"pie\" data-sq-family=\"radial\" data-sq-theme=\"squillify\" data-sq-theme-version=\"1\" data-sq-surface=\"light\" data-sq-density=\"standard\" data-sq-a11y-detail=\"full\" aria-labelledby=\"sq-18ccf60712ab-title-6 sq-18ccf60712ab-desc-7\"><title id=\"sq-18ccf60712ab-title-6\">Pie chart</title><desc id=\"sq-18ccf60712ab-desc-7\">Pie chart. Total 5. Build 3 (60.00%). Run 2 (40.00%).</desc><style>.sq-chart{--sq-chart-axis:#c9d1df;--sq-chart-font-family:'Squillify Mono', 'IBM Plex Mono', monospace;--sq-chart-grid:#d8dee9;--sq-chart-surface:#ffffff;--sq-chart-text-muted:#667085;--sq-chart-text-primary:#101828;--sq-series-1:#2563eb;--sq-series-2:#6d5ce7;--sq-series-3:#168a5b;--sq-series-4:#c45412;--sq-series-5:#d92d20;--sq-series-6:#667085;font-family:var(--sq-chart-font-family);font-weight:500;}.sq-chart .sq-background{fill:var(--sq-chart-surface);}</style><defs><linearGradient id=\"sq-18ccf60712ab-gradient-0\" gradientUnits=\"objectBoundingBox\" x1=\"0\" y1=\"0\" x2=\"0\" y2=\"1\"><stop offset=\"0\" stop-color=\"#6f9bff\"/><stop offset=\"1\" stop-color=\"#c9d8ff\"/></linearGradient><linearGradient id=\"sq-18ccf60712ab-gradient-1\" gradientUnits=\"objectBoundingBox\" x1=\"0\" y1=\"0\" x2=\"0\" y2=\"1\"><stop offset=\"0\" stop-color=\"#a99cf8\"/><stop offset=\"1\" stop-color=\"#ded9ff\"/></linearGradient><linearGradient id=\"sq-18ccf60712ab-gradient-2\" gradientUnits=\"objectBoundingBox\" x1=\"0\" y1=\"0\" x2=\"0\" y2=\"1\"><stop offset=\"0\" stop-color=\"#54bc8b\"/><stop offset=\"1\" stop-color=\"#c8ebda\"/></linearGradient><linearGradient id=\"sq-18ccf60712ab-gradient-3\" gradientUnits=\"objectBoundingBox\" x1=\"0\" y1=\"0\" x2=\"0\" y2=\"1\"><stop offset=\"0\" stop-color=\"#f09a5b\"/><stop offset=\"1\" stop-color=\"#f7d4ba\"/></linearGradient><linearGradient id=\"sq-18ccf60712ab-gradient-4\" gradientUnits=\"objectBoundingBox\" x1=\"0\" y1=\"0\" x2=\"0\" y2=\"1\"><stop offset=\"0\" stop-color=\"#426cad\"/><stop offset=\"1\" stop-color=\"#b7c8e3\"/></linearGradient><linearGradient id=\"sq-18ccf60712ab-gradient-5\" gradientUnits=\"objectBoundingBox\" x1=\"0\" y1=\"0\" x2=\"0\" y2=\"1\"><stop offset=\"0\" stop-color=\"#98a2b3\"/><stop offset=\"1\" stop-color=\"#e4e7ec\"/></linearGradient></defs><rect x=\"0\" y=\"0\" width=\"720\" height=\"480\" fill=\"#ffffff\" class=\"sq-background\" data-sq-role=\"background\"/><g class=\"sq-plot\" data-sq-role=\"plot\"><path d=\"M 360 240 L 360 38 A 202 202 0 1 1 241.267 403.421 Z\" fill=\"url(#sq-18ccf60712ab-gradient-0)\" stroke=\"#ffffff\" stroke-width=\"1\" class=\"sq-mark sq-pie-sector\" data-sq-role=\"region\" data-sq-target-key=\"t-pie-c6315424ba214d6b\" data-sq-category-index=\"0\" data-sq-palette-index=\"0\"/><path d=\"M 360 240 L 241.267 403.421 A 202 202 0 0 1 360 38 Z\" fill=\"url(#sq-18ccf60712ab-gradient-1)\" stroke=\"#ffffff\" stroke-width=\"1\" class=\"sq-mark sq-pie-sector\" data-sq-role=\"region\" data-sq-target-key=\"t-pie-d4312cc973cb4357\" data-sq-category-index=\"1\" data-sq-palette-index=\"1\"/><text x=\"479.11\" y=\"277.701\" font-size=\"10\" text-anchor=\"middle\" fill=\"#101828\" class=\"sq-label sq-pie-label\" data-sq-role=\"category-label\" data-sq-category-index=\"0\">Build</text><text x=\"479.11\" y=\"291.701\" font-size=\"10\" text-anchor=\"middle\" fill=\"#101828\" class=\"sq-label sq-pie-value\" data-sq-role=\"value-label\" data-sq-category-index=\"0\">60.00%</text><text x=\"240.89\" y=\"200.299\" font-size=\"10\" text-anchor=\"middle\" fill=\"#101828\" class=\"sq-label sq-pie-label\" data-sq-role=\"category-label\" data-sq-category-index=\"1\">Run</text><text x=\"240.89\" y=\"214.299\" font-size=\"10\" text-anchor=\"middle\" fill=\"#101828\" class=\"sq-label sq-pie-value\" data-sq-role=\"value-label\" data-sq-category-index=\"1\">40.00%</text></g></svg>",
  "width": 720,
  "renderSummary": {
    "skill": "chart.pie",
    "partCount": 2,
    "sectorCount": 2,
    "order": "input"
  },
  "partResults": [
    {
      "value": "3",
      "label": "Build",
      "inputIndex": 0,
      "resolvedIndex": 0,
      "id": "build",
      "ratio": "0.6",
      "meaning": "neutral",
      "emphasis": "none"
    },
    {
      "value": "2",
      "label": "Run",
      "inputIndex": 1,
      "resolvedIndex": 1,
      "id": "run",
      "ratio": "0.4",
      "meaning": "neutral",
      "emphasis": "none"
    }
  ]
}
  • Show a composition of two to twelve readable parts
  • Publish an exact part-to-whole SVG with auditable ratios

Avoid for

  • Many categories
  • Comparing close values precisely
  • Nested rings

Composable with

Safety & privacy

  • Runs without calling any external service.
  • Your payloads are never stored permanently.
  • Telemetry captures metadata only — never your payload contents.
  • We never train models on your payloads.
  • No human reviews your payloads.

Tags

chartvisualizationsvgproportionpie