Skip to content
Styleof the Chart component

Multi-Line Chart

Plot several lines on one chart with a legend to compare series side by side — all data swapped per API call. Generate multi-line chart images free.

Updated

Multi-Line 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": "line",
  "sales.lineWidth": 3,
  "sales.data": [],
  "sales.series": [
    {
      "name": "This month",
      "data": [14, 22, 19, 28, 34],
      "color": "#6366F1"
    },
    {
      "name": "Last month",
      "data": [10, 16, 18, 21, 24],
      "color": "#94A3B8"
    }
  ],
  "sales.showLegend": true,
  "sales.legendPosition": "bottom"
}

Good for

  • This-month vs last-month metric comparisons
  • A/B test performance over time
  • Plan usage vs limit trend reports

Try your own data

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

A/B test conversion over time

Variant A vs variant B conversion rate per day, percent-formatted.

{
  "sales.chartType": "line",
  "sales.lineWidth": 3,
  "sales.data": [],
  "sales.series": [
    {
      "name": "Variant A",
      "data": [3.1, 3.4, 3.9, 4.2, 4.8],
      "color": "#10B981"
    },
    {
      "name": "Variant B",
      "data": [3, 3.2, 3.1, 3.4, 3.3],
      "color": "#F59E0B"
    }
  ],
  "sales.showLegend": true,
  "sales.legendPosition": "bottom",
  "sales.labels": ["Day 1", "Day 2", "Day 3", "Day 4", "Day 5"],
  "sales.valueFormat": "percent"
}

Usage vs plan limit

API calls against the plan ceiling — an at-a-glance quota trend.

{
  "sales.chartType": "line",
  "sales.lineWidth": 3,
  "sales.data": [],
  "sales.series": [
    {
      "name": "Usage",
      "data": [420, 610, 580, 790, 930],
      "color": "#6366F1"
    },
    {
      "name": "Limit",
      "data": [1000, 1000, 1000, 1000, 1000],
      "color": "#EF4444"
    }
  ],
  "sales.showLegend": true,
  "sales.legendPosition": "bottom",
  "sales.labels": ["W1", "W2", "W3", "W4", "W5"],
  "sales.valueFormat": "compact"
}

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 Multi-line 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": "line",
    "sales.data": [],
    "sales.lineWidth": 3,
    "sales.series": [
      {
        "name": "This month",
        "data": [14, 22, 19, 28, 34],
        "color": "#6366F1"
      },
      {
        "name": "Last month",
        "data": [10, 16, 18, 21, 24],
        "color": "#94A3B8"
      }
    ],
    "sales.showLegend": true,
    "sales.legendPosition": "bottom"
  }' \
  -o image.png

Other chart styles

Multi-Line Chart questions

What does the Multi-line style change on the chart component?

Several lines compared on one chart with a legend. It sets 6 properties on the chart component: chartType, lineWidth, data, series, showLegend, legendPosition. Everything else keeps the component's defaults, so your data and layout carry over.

How do I render the multi-line 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.lineWidth) in the render request. Each render can carry different data while keeping the Multi-line 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.