Data Visualization
Generate customizable bar charts from data with various styling options
Rufen Sie dieses Werkzeug aus Ihrem Code in drei Sprachen auf.
curl -X POST 'https://api.elysiatools.com/de/api/tools/bar-chart-generator' \
-H 'Content-Type: application/json' \
-d '{"chartData":"JSON: [{"label": "Jan", "value": 100},\n{"label": "Feb", "value": 150},\n{"label": "Mar", "value": 120}]\n\nor text:\nJan:100\nFeb:150\nMar:120","chartTitle":"Enter chart title...","chartType":"vertical","barColor":"#3b82f6","backgroundColor":"#ffffff","gridColor":"#e0e0e0","barWidth":"50","chartHeight":"400","maxValue":0,"minValue":"0","xAxisLabel":"Category","yAxisLabel":"Value","showGrid":true,"showValues":true,"showLegend":true}'Senden Sie eine POST-Anfrage mit Ihren Eingaben als JSON. Dateiparameter erfordern einen vorherigen Upload.
POST https://api.elysiatools.com/de/api/tools/bar-chart-generator| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| chartData | textarea | Ja | Data for the chart. Can be JSON array or simple label:value pairs |
| chartTitle | text | Nein | Title that will be displayed above the chart |
| chartType | select | Nein | — |
| barColor | color | Nein | Color for the bars in the chart |
| backgroundColor | color | Nein | Background color for the chart container |
| gridColor | color | Nein | Color for the grid lines |
| barWidth | number | Nein | Width of each bar in pixels (auto-adjusts if too large) |
| chartHeight | number | Nein | Height of the chart in pixels |
| maxValue | number | Nein | Maximum value for Y-axis (leave empty for auto-scale) |
| minValue | number | Nein | Minimum value for Y-axis |
| xAxisLabel | text | Nein | Label for the X-axis |
| yAxisLabel | text | Nein | Label for the Y-axis |
| showGrid | checkbox | Nein | Display horizontal grid lines for better readability |
| showValues | checkbox | Nein | Display the actual values on top of each bar |
| showLegend | checkbox | Nein | Display a legend below the chart |
HTML-Ergebnis
{
"result": "<div>Processed HTML content</div>",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}Fügen Sie dieses Werkzeug Ihrem Model-Context-Protocol-Server hinzu, damit KI-Agenten es auflisten und aufrufen können.
Fügen Sie diesen Block Ihrer MCP-Client-Konfiguration hinzu:
{
"mcpServers": {
"elysiatools-bar-chart-generator": {
"name": "bar-chart-generator",
"description": "Generate customizable bar charts from data with various styling options",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=bar-chart-generator",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}Nach dem Verbinden mit dem SSE-Endpunkt listen Sie die bereitgestellten Werkzeuge auf:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Rufen Sie das Werkzeug über seine ID auf; Argumente werden aus seiner Parameterliste gebildet:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "bar-chart-generator",
"arguments": {
"chartData": "JSON: [{"label": "Jan", "value": 100},\n{"label": "Feb", "value": 150},\n{"label": "Mar", "value": 120}]\n\nor text:\nJan:100\nFeb:150\nMar:120",
"chartTitle": "Enter chart title...",
"chartType": "vertical",
"barColor": "#3b82f6",
"backgroundColor": "#ffffff",
"gridColor": "#e0e0e0",
"barWidth": "50",
"chartHeight": "400",
"maxValue": 0,
"minValue": "0",
"xAxisLabel": "Category",
"yAxisLabel": "Value",
"showGrid": true,
"showValues": true,
"showLegend": true
}
}
}Fragen oder Probleme? Kontakt: [email protected]