Skip to content
Styleof the Chart component

100% Stacked Chart

Generate 100% stacked bar chart images showing each series as a share of the category total — every column fills to 100%. Fresh data per API call, free.

Updated

100% Stacked 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": "Mobile",
      "data": [40, 46, 52, 58],
      "color": "#6366F1"
    },
    {
      "name": "Desktop",
      "data": [45, 40, 34, 30],
      "color": "#0EA5E9"
    },
    {
      "name": "Tablet",
      "data": [15, 14, 14, 12],
      "color": "#10B981"
    }
  ],
  "sales.labels": ["Q1", "Q2", "Q3", "Q4"],
  "sales.stacked": true,
  "sales.stackType": "percent",
  "sales.showLegend": true,
  "sales.legendPosition": "bottom"
}

Good for

  • Market-share composition over time
  • Budget allocation share per quarter
  • Response-mix (survey/NPS) per wave

Try your own data

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

Traffic source mix

Organic / paid / referral share of total sessions per month.

{
  "sales.chartType": "bar",
  "sales.data": [],
  "sales.series": [
    {
      "name": "Organic",
      "data": [520, 560, 610, 640],
      "color": "#10B981"
    },
    {
      "name": "Paid",
      "data": [300, 340, 320, 380],
      "color": "#F59E0B"
    },
    {
      "name": "Referral",
      "data": [120, 140, 160, 150],
      "color": "#8B5CF6"
    }
  ],
  "sales.labels": ["Jan", "Feb", "Mar", "Apr"],
  "sales.stacked": true,
  "sales.stackType": "percent",
  "sales.showLegend": true,
  "sales.legendPosition": "bottom"
}

Plan mix over quarters

Free vs Pro vs Team as a share of the customer base each quarter.

{
  "sales.chartType": "bar",
  "sales.data": [],
  "sales.series": [
    {
      "name": "Free",
      "data": [60, 55, 48, 42],
      "color": "#94A3B8"
    },
    {
      "name": "Pro",
      "data": [30, 33, 38, 41],
      "color": "#6366F1"
    },
    {
      "name": "Team",
      "data": [10, 12, 14, 17],
      "color": "#4F46E5"
    }
  ],
  "sales.labels": ["Q1", "Q2", "Q3", "Q4"],
  "sales.stacked": true,
  "sales.stackType": "percent",
  "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 100% stacked 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": "Mobile",
        "data": [40, 46, 52, 58],
        "color": "#6366F1"
      },
      {
        "name": "Desktop",
        "data": [45, 40, 34, 30],
        "color": "#0EA5E9"
      },
      {
        "name": "Tablet",
        "data": [15, 14, 14, 12],
        "color": "#10B981"
      }
    ],
    "sales.labels": ["Q1", "Q2", "Q3", "Q4"],
    "sales.stacked": true,
    "sales.stackType": "percent",
    "sales.showLegend": true,
    "sales.legendPosition": "bottom"
  }' \
  -o image.png

Other chart styles

100% Stacked Chart questions

What does the 100% stacked style change on the chart component?

Stacked bars rescaled so every column fills 100% — composition/share of total over time. It sets 8 properties on the chart component: chartType, data, series, labels, stacked, stackType, showLegend, legendPosition. Everything else keeps the component's defaults, so your data and layout carry over.

How do I render the 100% stacked 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 100% stacked 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.