Data
- Components
- Data
- Chart
Chart
type: "chart"13 styles · 27 propertiesBar, line and area charts with single- or multi-series data, labels, legends, axes and value formatting — dashboard-quality charts rendered straight into your image.
Updated













Try your own data
Change the chart here with the same controls the editor shows. The preview updates as you type, and you get the API request for your changes.
13 styles
Pick one to preview itExamples
Each example is the same chart with different values. The JSON is what you send.
Weekly signups report
A Slack-ready bar chart of new signups per weekday, values printed on the bars.
{
"sales.data": [142, 189, 173, 236, 208],
"sales.labels": ["Mon", "Tue", "Wed", "Thu", "Fri"],
"sales.colors": ["#6366F1"],
"sales.showValues": true,
"sales.yAxisLabel": "Signups"
}Monthly revenue in dollars
Revenue per month formatted as currency, compact enough for an email header.
{
"sales.data": [12400, 15800, 14200, 19600, 22300],
"sales.labels": ["Feb", "Mar", "Apr", "May", "Jun"],
"sales.colors": ["#10B981"],
"sales.valueFormat": "currency",
"sales.currencySymbol": "$",
"sales.showValues": true
}Good for
- Weekly KPI report images posted to Slack or email
- OG images with live stats for blog posts and dashboards
- Automated investor and client report graphics
- E-commerce sales trend snapshots
- Social cards visualizing survey results
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": [8, 22, 17, 30, 26]
}' \
-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": [8, 22, 17, 30, 26]
}),
})
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": [8, 22, 17, 30, 26]
},
)
response.raise_for_status()
with open("image.png", "wb") as f:
f.write(response.content)Properties
Every property works the same in the editor, in design JSON and as an API override.
27 properties shown
| Property | Type | Default | What it does |
|---|---|---|---|
| Data | |||
chartType | 'bar' | 'line' | 'area' | 'waterfall' | 'lollipop' | 'step' | 'slope' | 'combo' | "bar" | Chart style. waterfall draws single-series running-total bars (deltas), colored up/down. |
data | number[] | [] | Single-series data values (ignored when series is set). |
series | object[] | [] | Multi-series data: array of { name?, data: number[], color? }. |
labels | string[] | [] | Category labels along the x-axis. |
| Look | |||
colors | color[] | [] | Color palette. Multi-series: one color per series. Single-series bar charts: colors[i] colors bar i individually (empty string = inherit). |
orientation | 'vertical' | 'horizontal' | "vertical" | Bar direction for bar charts. |
stacked | boolean | false | Stack multiple series on top of each other. |
stackType | 'standard' | 'percent' | "standard" | Stacking mode when stacked: "standard" piles raw values; "percent" rescales each category to 100% (share of total, axis reads as %). |
sparkline | boolean | false | Minimal mode: hides axes, grid and labels. |
textColor | color | "#52514e" | Color of axis labels and values. |
lineWidth | number | 2 | Stroke width for line/area charts in pixels. |
| Axes, values and legend | |||
showAxis | boolean | true | Show the x/y axes. |
showGrid | boolean | true | Show background grid lines. |
showValues | boolean | false | Print each data value on the chart. |
showLegend | boolean | — | Show the series legend. |
legendPosition | 'top' | 'right' | 'bottom' | "bottom" | Where the legend is placed. |
valueFormat | 'number' | 'compact' | 'percent' | 'currency' | "number" | How values are formatted (1200, 1.2K, 12%, $1,200). |
currencySymbol | string | "$" | Currency symbol used with the 'currency' format. |
gridColor | color | "#e6e6e3" | Color of the grid lines. |
xAxisLabel | string | — | Caption below the x-axis. |
yAxisLabel | string | — | Caption beside the y-axis. |
| Frame | |||
opacity | number | 1 | Overall component opacity from 0 (transparent) to 1 (opaque). |
borderWidth | number | 0 | Border thickness in pixels around the component. |
borderColor | color | "transparent" | Border color (any CSS color). |
borderStyle | 'solid' | 'dashed' | 'dotted' | 'double' | 'none' | "solid" | Border line style. |
borderRadius | number | 0 | Corner radius in pixels. |
boxShadow | string | — | CSS box-shadow applied to the component, e.g. "0 4px 6px rgba(0,0,0,0.1)". |
Chart questions
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.
Can I plot more than one series?
Yes. Pass series as an array of { name, data, color } objects, enable stacked to pile them up, and show a legend positioned top, right or bottom.
How do I format values as currency or percentages?
valueFormat supports number (1,200), compact (1.2K), percent and currency, with a configurable currencySymbol for the currency format.
Where the chart component fits
Free tools built on it, guides that use it, and the components that sit beside it.