Elysia Tools Docs
EN
Language
ZHESPTRUFRDEEN
Back to site
Browse tools

Data Visualization

Grouped Bar Chart Generator

Generate grouped bar charts for comparing multiple categories side by side, perfect for multi-category comparisons and comparative analysis

html· HTML resultOpen tool

Quick start

Call this tool from your code in three languages.

cURL
curl -X POST 'https://api.elysiatools.com/en/api/tools/grouped-bar-chart' \
  -H 'Content-Type: application/json' \
  -d '{"chartData":"Multi-series JSON format:\n{"categories": ["Q1", "Q2", "Q3"],\n  "series": [\n    {"name": "Product A", "data": [100, 150, 120]},\n    {"name": "Product B", "data": [80, 110, 140]},\n    {"name": "Product C", "data": [60, 90, 110]}\n  ]\n}\n\nSingle series:\n{"categories": ["A", "B", "C"],\n  "series": [\n    {"name": "Values", "data": [100, 150, 120]}\n  ]}","chartTitle":"Enter chart title...","chartType":"vertical","barColors":"#3b82f6,#10b981,#f59e0b","backgroundColor":"#ffffff","gridColor":"#e0e0e0","barWidth":"30","groupSpacing":"30","chartHeight":"400","maxValue":0,"minValue":0,"xAxisLabel":"Categories","yAxisLabel":"Value","showGrid":true,"showValues":true,"valuePosition":"top","showLegend":true}'

© 2026 Elysia Tools. Developer documentation.

Back to siteBrowse tools

API reference

Send a POST request with your inputs as JSON. File parameters require a separate upload first.

Endpoint

HTTP
POST https://api.elysiatools.com/en/api/tools/grouped-bar-chart

Parameters

NameTypeRequiredDescription
chartDatatextareaYesMulti-series data with categories and series arrays. Each series should have the same number of data points as categories.
chartTitletextNoTitle that will be displayed above the chart
chartTypeselectNo—
barColorstextNoColors for different series (comma-separated hex colors). Leave empty for default colors.
backgroundColorcolorNoBackground color for the chart container
gridColorcolorNoColor for the grid lines
barWidthnumberNoWidth of individual bars in pixels (auto-adjusts if too large)
groupSpacingnumberNoSpacing between different groups in pixels
chartHeightnumberNoHeight of the chart in pixels
maxValuenumberNoMaximum value for axis (leave empty for auto-scale)
minValuenumberNoMinimum value for axis (leave empty for auto-detect)
xAxisLabeltextNoLabel for the X-axis
yAxisLabeltextNoLabel for the Y-axis
showGridcheckboxNoDisplay grid lines for better readability
showValuescheckboxNoDisplay the actual values on or near bars
valuePositionselectNo—
showLegendcheckboxNoDisplay a legend below the chart

Response format

HTML result

JSON
{
  "result": "<div>Processed HTML content</div>",
  "error": "Error message (optional)",
  "message": "Notification message (optional)",
  "metadata": {
    "key": "value"
  }
}

MCP integration

Add this tool to your Model Context Protocol server so AI agents can list and call it.

Server configuration

Add this block to your MCP client configuration:

mcp.json
{
  "mcpServers": {
    "elysiatools-grouped-bar-chart": {
      "name": "grouped-bar-chart",
      "description": "Generate grouped bar charts for comparing multiple categories side by side, perfect for multi-category comparisons and comparative analysis",
      "baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=grouped-bar-chart",
      "command": "",
      "args": [],
      "env": {},
      "isActive": true,
      "type": "sse"
    }
  }
}

List available tools

After connecting to the SSE endpoint, list the exposed tools:

tools/list
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/list"
}

Call this tool

Invoke the tool by its id, passing arguments built from its parameters:

tools/call
{
  "jsonrpc": "2.0",
  "id": 2,
  "method": "tools/call",
  "params": {
    "name": "grouped-bar-chart",
    "arguments": {
  "chartData": "Multi-series JSON format:\n{&quot;categories&quot;: [&quot;Q1&quot;, &quot;Q2&quot;, &quot;Q3&quot;],\n  &quot;series&quot;: [\n    {&quot;name&quot;: &quot;Product A&quot;, &quot;data&quot;: [100, 150, 120]},\n    {&quot;name&quot;: &quot;Product B&quot;, &quot;data&quot;: [80, 110, 140]},\n    {&quot;name&quot;: &quot;Product C&quot;, &quot;data&quot;: [60, 90, 110]}\n  ]\n}\n\nSingle series:\n{&quot;categories&quot;: [&quot;A&quot;, &quot;B&quot;, &quot;C&quot;],\n  &quot;series&quot;: [\n    {&quot;name&quot;: &quot;Values&quot;, &quot;data&quot;: [100, 150, 120]}\n  ]}",
  "chartTitle": "Enter chart title...",
  "chartType": "vertical",
  "barColors": "#3b82f6,#10b981,#f59e0b",
  "backgroundColor": "#ffffff",
  "gridColor": "#e0e0e0",
  "barWidth": "30",
  "groupSpacing": "30",
  "chartHeight": "400",
  "maxValue": 0,
  "minValue": 0,
  "xAxisLabel": "Categories",
  "yAxisLabel": "Value",
  "showGrid": true,
  "showValues": true,
  "valuePosition": "top",
  "showLegend": true
}
  }
}
Chain multiple tools in one session with a comma-separated toolId list, e.g. /mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp (max 20).

Questions or issues? Contact [email protected]

Browse tools
Open tool