Skip to content

Line Chart

Chart style
type: "chart"

Generate line chart images for trends over time — fresh data points and labels on every API call, styled to your brand. Create line chart images free.

Edit it — this is the actual editor panel
Design JSON — “Line” variant
{
  "title": "Chart sample",
  "description": "A dynamic bar chart",
  "dimensions": {
    "width": 800,
    "height": 420
  },
  "background": {
    "color": "#ffffff"
  },
  "components": [
    {
      "id": "sample-chart",
      "key": "sales",
      "type": "chart",
      "position": {
        "x": 140,
        "y": 60
      },
      "rotation": 0,
      "size": {
        "width": 520,
        "height": 300
      },
      "dynamic": true,
      "properties": {
        "chartType": "line",
        "data": [
          12,
          28,
          20,
          34,
          26
        ],
        "labels": [
          "Mon",
          "Tue",
          "Wed",
          "Thu",
          "Fri"
        ],
        "colors": [],
        "orientation": "vertical",
        "showAxis": true,
        "showGrid": true,
        "showValues": false,
        "valueFormat": "number",
        "opacity": 1,
        "lineWidth": 3
      }
    }
  ]
}

Chart examples

Real renders of the line chart — each one is the same component with different property values, and the API payload below each preview reproduces it exactly.

Six-month traffic trend

Site visits per month with compact value formatting (1.2K style).

API overrides for this example
{
  "sales.chartType": "line",
  "sales.lineWidth": 3,
  "sales.data": [
    1200,
    1900,
    1700,
    2400,
    2600,
    3100
  ],
  "sales.labels": [
    "Jan",
    "Feb",
    "Mar",
    "Apr",
    "May",
    "Jun"
  ],
  "sales.colors": [
    "#0EA5E9"
  ],
  "sales.valueFormat": "compact",
  "sales.showValues": true
}

MRR growth for an investor update

Monthly recurring revenue as a currency-formatted line, axes captioned.

API overrides for this example
{
  "sales.chartType": "line",
  "sales.lineWidth": 3,
  "sales.data": [
    8200,
    9100,
    10400,
    12800,
    14100
  ],
  "sales.labels": [
    "Q1",
    "Q2",
    "Q3",
    "Q4",
    "Q5"
  ],
  "sales.colors": [
    "#10B981"
  ],
  "sales.valueFormat": "currency",
  "sales.currencySymbol": "$",
  "sales.yAxisLabel": "MRR"
}

When to use the line style

  • Weekly traffic or revenue trend emails
  • Stock or metric movement snapshots
  • OG images with a live trend line

Use it dynamically via the API

Feed fresh numbers via '<key>.data' (or '<key>.series' for multi-series), and swap '<key>.labels' or '<key>.chartType' per render.

Full API request with this variant's current values — the playground above sends only the properties you change
curl --location 'https://render.imejis.io/v1/{{YOUR_DESIGN_ID}}' \
--header 'dma-api-key: {{YOUR_API_KEY}}' \
--header 'Content-Type: application/json' \
--data '{
    "sales.chartType": "line",
    "sales.data": [
        12,
        28,
        20,
        34,
        26
    ],
    "sales.labels": [
        "Mon",
        "Tue",
        "Wed",
        "Thu",
        "Fri"
    ],
    "sales.colors": [],
    "sales.orientation": "vertical",
    "sales.showAxis": true,
    "sales.showGrid": true,
    "sales.showValues": false,
    "sales.valueFormat": "number",
    "sales.opacity": 1,
    "sales.lineWidth": 3
}'

Only send the properties you want to change — everything else keeps its design value. See the API documentation for all languages.

Other chart styles

See the chart component page for the full property reference and FAQs.

We use cookies to run the site and, depending on your region and your choice here, for analytics and marketing. See our Cookie Policy. You can change this any time from “Cookie settings” in the footer.