Elysia Tools Docs
DE
Sprache
ZHESPTRUFRDEEN
Zurück zur Website
Werkzeuge durchsuchen

Data Visualization

Line Chart Generator

Generate customizable multi-line charts from data with various styling options

html· HTML-ErgebnisWerkzeug öffnen

Schnellstart

Rufen Sie dieses Werkzeug aus Ihrem Code in drei Sprachen auf.

cURL
curl -X POST 'https://api.elysiatools.com/de/api/tools/line-chart-generator' \
  -H 'Content-Type: application/json' \
  -d '{"chartData":"Single line JSON:\n[{"label": "Jan", "value": 100},\n{"label": "Feb", "value": 150},\n{"label": "Mar", "value": 120}]\n\nMulti-line JSON:\n{\n  "labels": ["Jan", "Feb", "Mar"],\n  "series": [\n    {"name": "Product A", "data": [100, 150, 120]},\n    {"name": "Product B", "data": [80, 110, 140]}\n  ]\n}\n\nor text (single line):\nJan:100\nFeb:150\nMar:120","chartTitle":"Enter chart title...","curveType":"linear","lineColors":"#3b82f6,#ef4444,#10b981","backgroundColor":"#ffffff","gridColor":"#e0e0e0","lineWidth":"3","chartHeight":"400","maxValue":0,"minValue":0,"xAxisLabel":"Category","yAxisLabel":"Value","showGrid":true,"showPoints":true,"showValues":true,"fillArea":false,"showLegend":true}'

© 2026 Elysia Tools. Entwicklerdokumentation.

Zurück zur WebsiteWerkzeuge durchsuchen

API-Referenz

Senden Sie eine POST-Anfrage mit Ihren Eingaben als JSON. Dateiparameter erfordern einen vorherigen Upload.

Endpunkt

HTTP
POST https://api.elysiatools.com/de/api/tools/line-chart-generator

Parameter

NameTypErforderlichBeschreibung
chartDatatextareaJaData for the chart. Supports single line array, multi-line object, or simple text format
chartTitletextNeinTitle that will be displayed above the chart
curveTypeselectNein—
lineColorstextNeinColors for multiple lines (comma-separated hex colors). Leave empty for default colors.
backgroundColorcolorNeinBackground color for the chart container
gridColorcolorNeinColor for the grid lines
lineWidthnumberNeinWidth of the line in pixels
chartHeightnumberNeinHeight of the chart in pixels
maxValuenumberNeinMaximum value for Y-axis (leave empty for auto-scale)
minValuenumberNeinMinimum value for Y-axis
xAxisLabeltextNeinLabel for the X-axis
yAxisLabeltextNeinLabel for the Y-axis
showGridcheckboxNeinDisplay grid lines for better readability
showPointscheckboxNeinDisplay data points on the line
showValuescheckboxNeinDisplay the actual values on data points
fillAreacheckboxNeinFill the area under the line with color
showLegendcheckboxNeinDisplay a legend below the chart

Antwortformat

HTML-Ergebnis

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

MCP-Integration

Fügen Sie dieses Werkzeug Ihrem Model-Context-Protocol-Server hinzu, damit KI-Agenten es auflisten und aufrufen können.

Serverkonfiguration

Fügen Sie diesen Block Ihrer MCP-Client-Konfiguration hinzu:

mcp.json
{
  "mcpServers": {
    "elysiatools-line-chart-generator": {
      "name": "line-chart-generator",
      "description": "Generate customizable multi-line charts from data with various styling options",
      "baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=line-chart-generator",
      "command": "",
      "args": [],
      "env": {},
      "isActive": true,
      "type": "sse"
    }
  }
}

Verfügbare Werkzeuge auflisten

Nach dem Verbinden mit dem SSE-Endpunkt listen Sie die bereitgestellten Werkzeuge auf:

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

Dieses Werkzeug aufrufen

Rufen Sie das Werkzeug über seine ID auf; Argumente werden aus seiner Parameterliste gebildet:

tools/call
{
  "jsonrpc": "2.0",
  "id": 2,
  "method": "tools/call",
  "params": {
    "name": "line-chart-generator",
    "arguments": {
  "chartData": "Single line JSON:\n[{&quot;label&quot;: &quot;Jan&quot;, &quot;value&quot;: 100},\n{&quot;label&quot;: &quot;Feb&quot;, &quot;value&quot;: 150},\n{&quot;label&quot;: &quot;Mar&quot;, &quot;value&quot;: 120}]\n\nMulti-line JSON:\n{\n  &quot;labels&quot;: [&quot;Jan&quot;, &quot;Feb&quot;, &quot;Mar&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  ]\n}\n\nor text (single line):\nJan:100\nFeb:150\nMar:120",
  "chartTitle": "Enter chart title...",
  "curveType": "linear",
  "lineColors": "#3b82f6,#ef4444,#10b981",
  "backgroundColor": "#ffffff",
  "gridColor": "#e0e0e0",
  "lineWidth": "3",
  "chartHeight": "400",
  "maxValue": 0,
  "minValue": 0,
  "xAxisLabel": "Category",
  "yAxisLabel": "Value",
  "showGrid": true,
  "showPoints": true,
  "showValues": true,
  "fillArea": false,
  "showLegend": true
}
  }
}
Verketten Sie mehrere Werkzeuge in einer Sitzung mit einer kommagetrennten toolId-Liste, z. B. /mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp (max. 20).

Fragen oder Probleme? Kontakt: [email protected]

Werkzeuge durchsuchen
Werkzeug öffnen