- Components
- Chart
- Line
Line Chart
Generate line chart images for trends over time — fresh data points and labels on every API call, styled to your brand. Create line chart images 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": "line",
"sales.lineWidth": 3
}Good for
- Weekly traffic or revenue trend emails
- Stock or metric movement snapshots
- OG images with a live trend line
Try your own data
Change the 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 line chart with different values. The JSON is what you send.
Six-month traffic trend
Site visits per month with compact value formatting (1.2K style).
{
"sales.chartType": "line",
"sales.lineWidth": 3,
"sales.data": [1200, 1900, 1700, 2400, 2600, 3100],
"sales.labels": ["Jan", "Feb", "Mar", "Apr", "May", "Jun"],
"sales.colors": ["#0EA5E9"],
"sales.valueFormat": "compact",
"sales.showValues": true
}MRR growth for an investor update
Monthly recurring revenue as a currency-formatted line, axes captioned.
{
"sales.chartType": "line",
"sales.lineWidth": 3,
"sales.data": [8200, 9100, 10400, 12800, 14100],
"sales.labels": ["Q1", "Q2", "Q3", "Q4", "Q5"],
"sales.colors": ["#10B981"],
"sales.valueFormat": "currency",
"sales.currencySymbol": "$",
"sales.yAxisLabel": "MRR"
}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": "line",
"sales.data": [8, 22, 17, 30, 26],
"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": "line",
"sales.data": [8, 22, 17, 30, 26],
"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": "line",
"sales.data": [8, 22, 17, 30, 26],
"sales.lineWidth": 3
},
)
response.raise_for_status()
with open("image.png", "wb") as f:
f.write(response.content)Other chart styles
Line Chart questions
What does the Line style change on the chart component?
A line chart for trends over time. It sets 2 properties on the chart component: chartType, lineWidth. Everything else keeps the component's defaults, so your data and layout carry over.
How do I render the 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.lineWidth) in the render request. Each render can carry different data while keeping the 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.











