Comparison Bar Chart Generator
Generate back-to-back bar charts for positive and negative value comparison, perfect for contrasting data sets
API Documentation
Request Endpoint
POST /en/api/tools/comparison-bar-chart
Request Parameters
| Parameter Name | Type | Required | Description |
|---|---|---|---|
| chartData | textarea | Yes | Data for the comparison chart. Supports JSON array or simple label|leftValue|rightValue text format |
| chartTitle | text | No | Title that will be displayed above the chart |
| colorScheme | select | No | - |
| barColor | color | No | Color for the left bars (right bar color comes from color scheme) |
| leftLabel | text | No | Label for the left side of the chart |
| rightLabel | text | No | Label for the right side of the chart |
| chartHeight | number | No | Height of the chart in pixels |
| barWidth | number | No | Maximum width of the bars in pixels |
| maxValue | number | No | Maximum value for the chart scale (leave empty for auto) |
| minValue | number | No | Minimum value for the chart scale |
| animationDuration | number | No | Duration of bar animation in milliseconds |
| backgroundColor | color | No | Background color for the chart container |
| gridColor | color | No | Color for the grid lines |
| showGrid | checkbox | No | Display grid lines for better readability |
| showValues | checkbox | No | Display values on the bars |
| showLegend | checkbox | No | Display a legend below the chart |
Response Format
{
"result": "Processed HTML content",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}
HTML:
HTML
AI MCP Documentation
Add this tool to your MCP server configuration:
{
"mcpServers": {
"elysiatools-comparison-bar-chart": {
"name": "comparison-bar-chart",
"description": "Generate back-to-back bar charts for positive and negative value comparison, perfect for contrasting data sets",
"baseUrl": "https://elysiatools.com/mcp/sse?toolId=comparison-bar-chart",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}
You can chain multiple tools, e.g.: `https://elysiatools.com/mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp`, max 20 tools.
If you encounter any issues, please contact us at [email protected]