- Components
- Chart
- Waterfall
Waterfall Chart
Generate waterfall chart images for cash-flow bridges, P&L attribution and budget variance — pass the step deltas and render a fresh image per API call.
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": "waterfall",
"sales.data": [5000, 1800, -1200, 900, -1500],
"sales.labels": ["Start", "Sales", "Refunds", "Upsell", "Costs"],
"sales.showValues": true,
"sales.valueFormat": "compact"
}Good for
- Cash-flow bridge images for finance updates
- Revenue-to-profit P&L attribution graphics
- Budget vs actual variance in board reports
Try your own data
Change the waterfall 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 waterfall chart with different values. The JSON is what you send.
Revenue to net profit bridge
Gross revenue stepped down through costs to net profit, currency-formatted.
{
"sales.chartType": "waterfall",
"sales.data": [120000, -38000, -22000, -14000, -9000],
"sales.labels": ["Revenue", "COGS", "Payroll", "Marketing", "Other"],
"sales.showValues": true,
"sales.valueFormat": "currency",
"sales.currencySymbol": "$",
"sales.colors": ["#16A34A", "#DC2626"]
}Monthly cash-flow bridge
Opening balance adjusted by inflows and outflows to the closing balance.
{
"sales.chartType": "waterfall",
"sales.data": [8000, 4200, -2600, 1500, -3100],
"sales.labels": ["Open", "Income", "Rent", "Refunds", "Payroll"],
"sales.showValues": true,
"sales.valueFormat": "compact"
}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": "waterfall",
"sales.data": [5000, 1800, -1200, 900, -1500],
"sales.labels": ["Start", "Sales", "Refunds", "Upsell", "Costs"],
"sales.showValues": true,
"sales.valueFormat": "compact"
}' \
-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": "waterfall",
"sales.data": [5000, 1800, -1200, 900, -1500],
"sales.labels": ["Start", "Sales", "Refunds", "Upsell", "Costs"],
"sales.showValues": true,
"sales.valueFormat": "compact"
}),
})
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": "waterfall",
"sales.data": [5000, 1800, -1200, 900, -1500],
"sales.labels": ["Start", "Sales", "Refunds", "Upsell", "Costs"],
"sales.showValues": True,
"sales.valueFormat": "compact"
},
)
response.raise_for_status()
with open("image.png", "wb") as f:
f.write(response.content)Other chart styles
Waterfall Chart questions
What does the Waterfall style change on the chart component?
A running-total bar chart: each step adds or subtracts from the prior total, colored up/down with connectors. It sets 5 properties on the chart component: chartType, data, labels, showValues, valueFormat. Everything else keeps the component's defaults, so your data and layout carry over.
How do I render the waterfall 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 Waterfall 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.











