Skip to content

Chart

type: "chart"13 styles · 27 properties

Bar, 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

Open in the editor
Preview · DefaultReal render, 1200 × 630
Chart component, Default style, sample render
The chart component’s default look.

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 it

Examples

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.

Or ask your AI agent“Using imejis, make a 1200 × 630 image with a Chart component (type "chart") filled with my data, then give me a render link I can call with new values.”
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.png

Properties

Every property works the same in the editor, in design JSON and as an API override.

27 properties shown

PropertyTypeDefaultWhat 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.
datanumber[][]Single-series data values (ignored when series is set).
seriesobject[][]Multi-series data: array of { name?, data: number[], color? }.
labelsstring[][]Category labels along the x-axis.
Look
colorscolor[][]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.
stackedbooleanfalseStack 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 %).
sparklinebooleanfalseMinimal mode: hides axes, grid and labels.
textColorcolor"#52514e"Color of axis labels and values.
lineWidthnumber2Stroke width for line/area charts in pixels.
Axes, values and legend
showAxisbooleantrueShow the x/y axes.
showGridbooleantrueShow background grid lines.
showValuesbooleanfalsePrint each data value on the chart.
showLegendboolean—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).
currencySymbolstring"$"Currency symbol used with the 'currency' format.
gridColorcolor"#e6e6e3"Color of the grid lines.
xAxisLabelstring—Caption below the x-axis.
yAxisLabelstring—Caption beside the y-axis.
Frame
opacitynumber1Overall component opacity from 0 (transparent) to 1 (opaque).
borderWidthnumber0Border thickness in pixels around the component.
borderColorcolor"transparent"Border color (any CSS color).
borderStyle'solid' | 'dashed' | 'dotted' | 'double' | 'none'"solid"Border line style.
borderRadiusnumber0Corner radius in pixels.
boxShadowstring—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.

Free tools built on it, guides that use it, and the components that sit beside it.