- Components
- Chart
- Step line
Step Line Chart
Generate step and staircase line chart images for interest rates, pricing tiers and any value that changes in discrete steps. Start free with imejis.
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": "step",
"sales.data": [2.5, 2.5, 3, 3, 4.25, 4.25, 5],
"sales.labels": ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul"],
"sales.colors": ["#DC2626"],
"sales.lineWidth": 3
}Good for
- Interest-rate or pricing-tier change history
- Plan/limit changes over time
- Inventory or headcount step changes
Try your own data
Change the step line 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 step line chart with different values. The JSON is what you send.
Central-bank rate history
Policy rate held flat then stepped up — percent-formatted staircase.
{
"sales.chartType": "step",
"sales.data": [4.5, 4.5, 4.75, 4.75, 5, 5.25, 5.25],
"sales.labels": ["Q1", "Q2", "Q3", "Q4", "Q5", "Q6", "Q7"],
"sales.colors": ["#B91C1C"],
"sales.lineWidth": 3,
"sales.valueFormat": "percent"
}Plan price changes
Monthly subscription price stepping through pricing updates.
{
"sales.chartType": "step",
"sales.data": [19, 19, 19, 29, 29, 39],
"sales.labels": ["'21", "'22", "'23", "'24", "'25", "'26"],
"sales.colors": ["#4F46E5"],
"sales.lineWidth": 3,
"sales.valueFormat": "currency",
"sales.showValues": true
}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": "step",
"sales.data": [2.5, 2.5, 3, 3, 4.25, 4.25, 5],
"sales.labels": ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul"],
"sales.colors": ["#DC2626"],
"sales.lineWidth": 3
}' \
-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": "step",
"sales.data": [2.5, 2.5, 3, 3, 4.25, 4.25, 5],
"sales.labels": ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul"],
"sales.colors": ["#DC2626"],
"sales.lineWidth": 3
}),
})
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": "step",
"sales.data": [2.5, 2.5, 3, 3, 4.25, 4.25, 5],
"sales.labels": ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul"],
"sales.colors": ["#DC2626"],
"sales.lineWidth": 3
},
)
response.raise_for_status()
with open("image.png", "wb") as f:
f.write(response.content)Other chart styles
Step Line Chart questions
What does the Step line style change on the chart component?
A line that holds each value until the next point — for rates that change in steps. It sets 5 properties on the chart component: chartType, data, labels, colors, lineWidth. Everything else keeps the component's defaults, so your data and layout carry over.
How do I render the step line 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 Step line 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.











