Skip to content
Styleof the Chart component

Horizontal Bars 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.

Updated

Horizontal Bars 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.orientation": "horizontal"
}

Good for

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

Try your own data

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

Survey results with long answers

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

{
  "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.

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

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 Horizontal bars 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": [8, 22, 17, 30, 26],
    "sales.orientation": "horizontal"
  }' \
  -o image.png

Other chart styles

Horizontal Bars Chart questions

What does the Horizontal bars style change on the chart component?

Bars running left-to-right — rankings and long category names. It sets 1 property on the chart component: orientation. Everything else keeps the component's defaults, so your data and layout carry over.

How do I render the horizontal bars 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.orientation) in the render request. Each render can carry different data while keeping the Horizontal bars 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.