- Components
- Pie chart
- Raw values
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

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.
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.pngconst res = await fetch(`https://render.imejis.io/v1/${process.env.IMEJIS_DESIGN_ID}`, {
method: "POST",
headers: {
"dma-api-key": process.env.IMEJIS_API_KEY,
"Content-Type": "application/json",
},
body: JSON.stringify({
"share.data": [55, 20, 15, 10],
"share.labelType": "value"
}),
})
if (!res.ok) throw new Error(`render failed: ${res.status}`)
const image = Buffer.from(await res.arrayBuffer())import os
import requests
response = requests.post(
f"https://render.imejis.io/v1/{os.environ['IMEJIS_DESIGN_ID']}",
headers={
"dma-api-key": os.environ["IMEJIS_API_KEY"],
"Content-Type": "application/json",
},
json={
"share.data": [55, 20, 15, 10],
"share.labelType": "value"
},
)
response.raise_for_status()
with open("image.png", "wb") as f:
f.write(response.content)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.
Where the pie chart component fits
Free tools built on it, guides that use it, and the components that sit beside it.


