Skip to content
Styleof the Pie chart component

Raw Values Pie Chart

Slice labels show the underlying numbers instead of percentages — ideal when absolute values matter — with data swapped per API call. Try imejis free.

Updated

Raw Values Pie Chart style, sample render

What this style sets

A style is the pie chart component with a few properties set. Send these, or start from the style in the editor.

{
  "share.labelType": "value"
}

Good for

  • Revenue amounts per segment
  • Vote counts in poll results
  • Headcount by department visuals

Try your own data

Change the raw values pie chart here with the same controls the editor shows. The preview updates as you type, and you get the API request for your changes.

Examples

Each example is the same raw values pie chart with different values. The JSON is what you send.

Poll results with vote counts

Community poll answers labeled with the actual number of votes.

{
  "share.labelType": "value",
  "share.data": [412, 267, 98],
  "share.labels": ["Yes", "No", "Undecided"],
  "share.colors": ["#10B981", "#EF4444", "#94A3B8"]
}

Headcount by department

Team sizes per department for an internal all-hands slide image.

{
  "share.labelType": "value",
  "share.data": [34, 21, 12, 8],
  "share.labels": ["Engineering", "Sales", "Support", "Ops"],
  "share.colors": ["#6366F1", "#0EA5E9", "#F59E0B", "#94A3B8"]
}

New values, every render

Update slice values with '<key>.data' and names with '<key>.labels'; variant and colors are overridable too. Send only the properties you want to change; everything else keeps its design value. The API guides cover every language.

Or ask your AI agent“Using imejis, make a 1200 × 630 image with the Raw values style of the Pie chart component (type "pie") filled with my data, then give me a render link I can call with new values.”
curl -X POST "https://render.imejis.io/v1/$IMEJIS_DESIGN_ID" \
  -H "dma-api-key: $IMEJIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "share.data": [55, 20, 15, 10],
    "share.labelType": "value"
  }' \
  -o image.png

Other pie chart styles

Raw Values Pie Chart questions

What does the Raw values style change on the pie chart component?

Slice labels show the underlying numbers instead of percentages. It sets 1 property on the pie chart component: labelType. Everything else keeps the component's defaults, so your data and layout carry over.

How do I render the raw values pie chart through the API?

Add a pie chart component to a design, then send its data together with the style's properties as flat overrides (for example share.labelType) in the render request. Each render can carry different data while keeping the Raw values look.

Can I change the slices per API call?

Yes — '<key>.data' sets the slice values and '<key>.labels' the names; colors and the pie/donut variant are overridable too.

How do I make a donut chart?

Set variant to 'donut' and tune innerRadius (a fraction of the pie radius) to size the hole — leaving room for a centered metric.

Free tools built on it, guides that use it, and the components that sit beside it.