Data Visualization
Chart displaying min-max ranges and time intervals, simplified version of Gantt chart
Call this tool from your code in three languages.
curl -X POST 'https://api.elysiatools.com/en/api/tools/range-bar-chart' \
-H 'Content-Type: application/json' \
-d '{"rangeData":"JSON format example (Date ranges):\n[{"label": "Project Phase 1", "startDate": "2024-01-01", "endDate": "2024-02-15", "color": "#4CAF50"},\n{"label": "Project Phase 2", "startDate": "2024-02-10", "endDate": "2024-04-01", "color": "#2196F3"}]\n\nOr numeric ranges:\n[{"label": "Product A", "minValue": 50, "maxValue": 120, "color": "#FF9800"},\n{"label": "Product B", "minValue": 80, "maxValue": 180, "color": "#4CAF50"}]","chartTitle":"Range Analysis Chart","orientation":"horizontal","showLabels":true,"showValues":true,"showGrid":true,"colorScheme":"blue","barHeight":"30","animationDuration":"1000","chartHeight":"400"}'Send a POST request with your inputs as JSON. File parameters require a separate upload first.
POST https://api.elysiatools.com/en/api/tools/range-bar-chart| Name | Type | Required | Description |
|---|---|---|---|
| rangeData | textarea | Yes | JSON format range chart data. Supports date ranges (startDate/endDate) or numeric ranges (minValue/maxValue) |
| chartTitle | text | No | Main title of the range chart |
| orientation | select | No | — |
| showLabels | checkbox | No | Whether to display item labels |
| showValues | checkbox | No | Whether to display start/end values |
| showGrid | checkbox | No | Whether to display background grid lines |
| colorScheme | select | No | — |
| barHeight | text | No | Height/thickness of the range bars in pixels |
| animationDuration | text | No | Animation duration in milliseconds |
| chartHeight | text | No | Height of the chart area in pixels (for vertical orientation) |
HTML result
{
"result": "<div>Processed HTML content</div>",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}Add this tool to your Model Context Protocol server so AI agents can list and call it.
Add this block to your MCP client configuration:
{
"mcpServers": {
"elysiatools-range-bar-chart": {
"name": "range-bar-chart",
"description": "Chart displaying min-max ranges and time intervals, simplified version of Gantt chart",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=range-bar-chart",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}After connecting to the SSE endpoint, list the exposed tools:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Invoke the tool by its id, passing arguments built from its parameters:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "range-bar-chart",
"arguments": {
"rangeData": "JSON format example (Date ranges):\n[{"label": "Project Phase 1", "startDate": "2024-01-01", "endDate": "2024-02-15", "color": "#4CAF50"},\n{"label": "Project Phase 2", "startDate": "2024-02-10", "endDate": "2024-04-01", "color": "#2196F3"}]\n\nOr numeric ranges:\n[{"label": "Product A", "minValue": 50, "maxValue": 120, "color": "#FF9800"},\n{"label": "Product B", "minValue": 80, "maxValue": 180, "color": "#4CAF50"}]",
"chartTitle": "Range Analysis Chart",
"orientation": "horizontal",
"showLabels": true,
"showValues": true,
"showGrid": true,
"colorScheme": "blue",
"barHeight": "30",
"animationDuration": "1000",
"chartHeight": "400"
}
}
}Questions or issues? Contact [email protected]