- Components
- Chart
- Stacked series
Stacked Series Chart
Stack multiple series per category with a legend to show composition — series data overridden on every API call. Generate stacked bar charts free.
Updated

What this style sets
A style is the chart component with a few properties set. Send these, or start from the style in the editor.
{
"sales.chartType": "bar",
"sales.data": [],
"sales.series": [
{
"name": "2025",
"data": [12, 28, 20, 34, 26]
},
{
"name": "2026",
"data": [18, 22, 26, 30, 32]
}
],
"sales.stacked": true,
"sales.showLegend": true,
"sales.legendPosition": "bottom"
}Good for
- Revenue split by product line per month
- Team workload composition reports
- Year-over-year comparisons in one bar
Try your own data
Change the stacked series 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 stacked series chart with different values. The JSON is what you send.
Revenue split by product line
Subscriptions vs one-time sales stacked per month, brand-colored.
{
"sales.chartType": "bar",
"sales.data": [],
"sales.series": [
{
"name": "Subscriptions",
"data": [24, 28, 31, 36, 40],
"color": "#6366F1"
},
{
"name": "One-time",
"data": [11, 9, 14, 12, 16],
"color": "#F59E0B"
}
],
"sales.stacked": true,
"sales.showLegend": true,
"sales.legendPosition": "bottom",
"sales.labels": ["Feb", "Mar", "Apr", "May", "Jun"],
"sales.valueFormat": "currency",
"sales.currencySymbol": "$"
}Support tickets by priority
Low / high priority ticket volume stacked per week for an ops report.
{
"sales.chartType": "bar",
"sales.data": [],
"sales.series": [
{
"name": "Low",
"data": [34, 41, 38, 29],
"color": "#10B981"
},
{
"name": "High",
"data": [12, 8, 15, 11],
"color": "#EF4444"
}
],
"sales.stacked": true,
"sales.showLegend": true,
"sales.legendPosition": "bottom",
"sales.labels": ["W1", "W2", "W3", "W4"]
}New values, every render
Feed fresh numbers via '<key>.data' (or '<key>.series' for multi-series), and swap '<key>.labels' or '<key>.chartType' per render. 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 '{
"sales.chartType": "bar",
"sales.data": [],
"sales.series": [
{
"name": "2025",
"data": [12, 28, 20, 34, 26]
},
{
"name": "2026",
"data": [18, 22, 26, 30, 32]
}
],
"sales.stacked": true,
"sales.showLegend": true,
"sales.legendPosition": "bottom"
}' \
-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({
"sales.chartType": "bar",
"sales.data": [],
"sales.series": [
{
"name": "2025",
"data": [12, 28, 20, 34, 26]
},
{
"name": "2026",
"data": [18, 22, 26, 30, 32]
}
],
"sales.stacked": true,
"sales.showLegend": true,
"sales.legendPosition": "bottom"
}),
})
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={
"sales.chartType": "bar",
"sales.data": [],
"sales.series": [
{
"name": "2025",
"data": [12, 28, 20, 34, 26]
},
{
"name": "2026",
"data": [18, 22, 26, 30, 32]
}
],
"sales.stacked": True,
"sales.showLegend": True,
"sales.legendPosition": "bottom"
},
)
response.raise_for_status()
with open("image.png", "wb") as f:
f.write(response.content)Other chart styles
Stacked Series Chart questions
What does the Stacked series style change on the chart component?
Two series stacked per category with a legend. It sets 6 properties on the chart component: chartType, data, series, stacked, showLegend, legendPosition. Everything else keeps the component's defaults, so your data and layout carry over.
How do I render the stacked series chart through the API?
Add a chart component to a design, then send its data together with the style's properties as flat overrides (for example sales.chartType and sales.data) in the render request. Each render can carry different data while keeping the Stacked series look.
Can I change the chart data per API call?
Yes — send '<key>.data' for a single series or '<key>.series' for multi-series, plus '<key>.labels'; even chartType can switch per render.
Which chart types are supported?
Bar (vertical or horizontal), line and area — with stacking for multiple series and a sparkline mode that hides axes, grid and labels.
Where the chart component fits
Free tools built on it, guides that use it, and the components that sit beside it.











