- Components
- Chart
- Combo (dual-axis)
Combo (Dual-Axis) Chart
Generate combo bar-and-line chart images with a secondary axis, revenue bars plus a growth-rate line or price plus volume. 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": "combo",
"sales.data": [],
"sales.series": [
{
"name": "Revenue",
"data": [120, 150, 140, 185, 210],
"type": "bar",
"axis": "left",
"color": "#6366F1"
},
{
"name": "Growth %",
"data": [8, 25, -7, 32, 14],
"type": "line",
"axis": "right",
"color": "#F59E0B"
}
],
"sales.labels": ["Jan", "Feb", "Mar", "Apr", "May"],
"sales.showLegend": true,
"sales.legendPosition": "bottom"
}Good for
- Revenue bars + growth-rate line for investor updates
- Price bars + volume line for market recaps
- Signups bars + conversion-% line for growth reports
Try your own data
Change the combo (dual-axis) 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 combo (dual-axis) chart with different values. The JSON is what you send.
Revenue & growth rate
Monthly revenue as bars (left) with the growth-% line on a secondary axis.
{
"sales.chartType": "combo",
"sales.data": [],
"sales.series": [
{
"name": "Revenue",
"data": [82, 96, 91, 118, 134],
"type": "bar",
"axis": "left",
"color": "#4F46E5"
},
{
"name": "Growth",
"data": [12, 17, -5, 30, 14],
"type": "line",
"axis": "right",
"color": "#10B981"
}
],
"sales.labels": ["Jan", "Feb", "Mar", "Apr", "May"],
"sales.showLegend": true,
"sales.legendPosition": "bottom"
}Signups & conversion
Signup volume bars with a conversion-rate line reading off the right axis.
{
"sales.chartType": "combo",
"sales.data": [],
"sales.series": [
{
"name": "Signups",
"data": [420, 510, 480, 620],
"type": "bar",
"axis": "left",
"color": "#0EA5E9"
},
{
"name": "Conversion",
"data": [3.1, 3.6, 3.2, 4.4],
"type": "line",
"axis": "right",
"color": "#EF4444"
}
],
"sales.labels": ["W1", "W2", "W3", "W4"],
"sales.showLegend": true,
"sales.legendPosition": "bottom"
}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": "combo",
"sales.data": [],
"sales.series": [
{
"name": "Revenue",
"data": [120, 150, 140, 185, 210],
"type": "bar",
"axis": "left",
"color": "#6366F1"
},
{
"name": "Growth %",
"data": [8, 25, -7, 32, 14],
"type": "line",
"axis": "right",
"color": "#F59E0B"
}
],
"sales.labels": ["Jan", "Feb", "Mar", "Apr", "May"],
"sales.showLegend": true,
"sales.legendPosition": "bottom"
}' \
-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": "combo",
"sales.data": [],
"sales.series": [
{
"name": "Revenue",
"data": [120, 150, 140, 185, 210],
"type": "bar",
"axis": "left",
"color": "#6366F1"
},
{
"name": "Growth %",
"data": [8, 25, -7, 32, 14],
"type": "line",
"axis": "right",
"color": "#F59E0B"
}
],
"sales.labels": ["Jan", "Feb", "Mar", "Apr", "May"],
"sales.showLegend": true,
"sales.legendPosition": "bottom"
}),
})
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": "combo",
"sales.data": [],
"sales.series": [
{
"name": "Revenue",
"data": [120, 150, 140, 185, 210],
"type": "bar",
"axis": "left",
"color": "#6366F1"
},
{
"name": "Growth %",
"data": [8, 25, -7, 32, 14],
"type": "line",
"axis": "right",
"color": "#F59E0B"
}
],
"sales.labels": ["Jan", "Feb", "Mar", "Apr", "May"],
"sales.showLegend": True,
"sales.legendPosition": "bottom"
},
)
response.raise_for_status()
with open("image.png", "wb") as f:
f.write(response.content)Other chart styles
Combo (Dual-Axis) Chart questions
What does the Combo (dual-axis) style change on the chart component?
Bars and a line on one chart with a secondary right axis — pair a total with a rate at a different scale. It sets 6 properties on the chart component: chartType, data, series, labels, showLegend, legendPosition. Everything else keeps the component's defaults, so your data and layout carry over.
How do I render the combo (dual-axis) 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 Combo (dual-axis) 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.











