Skip to content
Styleof the Chart component

Stacked Series Chart

Stack multiple series per category with a legend to show composition — series data overridden on every API call. Generate stacked bar charts free.

Updated

Stacked Series 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": "bar",
  "sales.data": [],
  "sales.series": [
    {
      "name": "2025",
      "data": [12, 28, 20, 34, 26]
    },
    {
      "name": "2026",
      "data": [18, 22, 26, 30, 32]
    }
  ],
  "sales.stacked": true,
  "sales.showLegend": true,
  "sales.legendPosition": "bottom"
}

Good for

  • Revenue split by product line per month
  • Team workload composition reports
  • Year-over-year comparisons in one bar

Try your own data

Change the stacked series 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 stacked series chart with different values. The JSON is what you send.

Revenue split by product line

Subscriptions vs one-time sales stacked per month, brand-colored.

{
  "sales.chartType": "bar",
  "sales.data": [],
  "sales.series": [
    {
      "name": "Subscriptions",
      "data": [24, 28, 31, 36, 40],
      "color": "#6366F1"
    },
    {
      "name": "One-time",
      "data": [11, 9, 14, 12, 16],
      "color": "#F59E0B"
    }
  ],
  "sales.stacked": true,
  "sales.showLegend": true,
  "sales.legendPosition": "bottom",
  "sales.labels": ["Feb", "Mar", "Apr", "May", "Jun"],
  "sales.valueFormat": "currency",
  "sales.currencySymbol": "$"
}

Support tickets by priority

Low / high priority ticket volume stacked per week for an ops report.

{
  "sales.chartType": "bar",
  "sales.data": [],
  "sales.series": [
    {
      "name": "Low",
      "data": [34, 41, 38, 29],
      "color": "#10B981"
    },
    {
      "name": "High",
      "data": [12, 8, 15, 11],
      "color": "#EF4444"
    }
  ],
  "sales.stacked": true,
  "sales.showLegend": true,
  "sales.legendPosition": "bottom",
  "sales.labels": ["W1", "W2", "W3", "W4"]
}

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 Stacked series 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": "bar",
    "sales.data": [],
    "sales.series": [
      {
        "name": "2025",
        "data": [12, 28, 20, 34, 26]
      },
      {
        "name": "2026",
        "data": [18, 22, 26, 30, 32]
      }
    ],
    "sales.stacked": true,
    "sales.showLegend": true,
    "sales.legendPosition": "bottom"
  }' \
  -o image.png

Other chart styles

Stacked Series Chart questions

What does the Stacked series style change on the chart component?

Two series stacked per category with a legend. It sets 6 properties on the chart component: chartType, data, series, stacked, showLegend, legendPosition. Everything else keeps the component's defaults, so your data and layout carry over.

How do I render the stacked series 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 Stacked series 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.