Horizontal bars chart

Chart styletype: "chart"

Bars running left-to-right suit rankings and long category names — data and labels swapped on every API call. Create horizontal bar chart images free.

Edit it — this is the actual editor panel
Design JSON — “Horizontal bars” 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": "bar",
        "data": [
          12,
          28,
          20,
          34,
          26
        ],
        "labels": [
          "Mon",
          "Tue",
          "Wed",
          "Thu",
          "Fri"
        ],
        "colors": [],
        "orientation": "horizontal",
        "showAxis": true,
        "showGrid": true,
        "showValues": false,
        "valueFormat": "number",
        "opacity": 1
      }
    }
  ]
}

Chart examples

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

Survey results with long answers

Poll answers as left-to-right bars — long option names stay readable.

API overrides for this example
{
  "sales.orientation": "horizontal",
  "sales.data": [
    45,
    32,
    18,
    5
  ],
  "sales.labels": [
    "Very satisfied",
    "Satisfied",
    "Neutral",
    "Unsatisfied"
  ],
  "sales.colors": [
    "#10B981"
  ],
  "sales.valueFormat": "percent",
  "sales.showValues": true
}

Top-5 sales leaderboard

Ranked rep performance with values printed at the end of each bar.

API overrides for this example
{
  "sales.orientation": "horizontal",
  "sales.data": [
    98,
    87,
    76,
    64,
    51
  ],
  "sales.labels": [
    "Ava",
    "Noah",
    "Mia",
    "Leo",
    "Zoe"
  ],
  "sales.colors": [
    "#6366F1"
  ],
  "sales.showValues": true
}

When to use the horizontal bars style

  • Top-10 leaderboards and rankings
  • Survey answers with long option names
  • Category comparison report images

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": "bar",
    "sales.data": [
        12,
        28,
        20,
        34,
        26
    ],
    "sales.labels": [
        "Mon",
        "Tue",
        "Wed",
        "Thu",
        "Fri"
    ],
    "sales.colors": [],
    "sales.orientation": "horizontal",
    "sales.showAxis": true,
    "sales.showGrid": true,
    "sales.showValues": false,
    "sales.valueFormat": "number",
    "sales.opacity": 1
}'

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.