Skip to content
Styleof the Chart component

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

Combo (Dual-Axis) Chart style, sample render

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.

Or ask your AI agent“Using imejis, make a 1200 × 630 image with the Combo (dual-axis) style of the 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": "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.png

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.

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