Data Visualization
Generate customizable scatter plots with regression lines and multiple data series
Rufen Sie dieses Werkzeug aus Ihrem Code in drei Sprachen auf.
curl -X POST 'https://api.elysiatools.com/de/api/tools/scatter-plot-generator' \
-H 'Content-Type: application/json' \
-d '{"chartData":"Single series JSON:\n[{"x": 1, "y": 2}, {"x": 3, "y": 4}]\n\nMulti-series JSON:\n{\n "series": [\n {"name": "Group A", "data": [{"x": 1, "y": 2}]},\n {"name": "Group B", "data": [{"x": 2, "y": 3}]}\n ]\n}\n\nor text:\n1,2\n3,4\n5,6","chartTitle":"Enter chart title...","pointColors":"#3b82f6,#ef4444,#10b981","backgroundColor":"#ffffff","gridColor":"#e0e0e0","pointSize":"5","opacity":"0.8","chartHeight":"400","xMinValue":0,"xMaxValue":0,"yMinValue":0,"yMaxValue":0,"xAxisLabel":"X Values","yAxisLabel":"Y Values","showGrid":true,"showPoints":true,"showLabels":false,"showRegression":false,"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/scatter-plot-generator| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| chartData | textarea | Ja | Data for the scatter plot. Supports single/multi-series JSON or simple x,y pairs |
| chartTitle | text | Nein | Title that will be displayed above the chart |
| pointColors | text | Nein | Colors for multiple series (comma-separated hex colors). Leave empty for default colors. |
| backgroundColor | color | Nein | Background color for the chart container |
| gridColor | color | Nein | Color for the grid lines |
| pointSize | number | Nein | Size of data points in pixels |
| opacity | number | Nein | Opacity of data points (0.1 to 1.0) |
| chartHeight | number | Nein | Height of the chart in pixels |
| xMinValue | number | Nein | Minimum value for X-axis (leave empty for auto-scale) |
| xMaxValue | number | Nein | Maximum value for X-axis (leave empty for auto-scale) |
| yMinValue | number | Nein | Minimum value for Y-axis (leave empty for auto-scale) |
| yMaxValue | number | Nein | Maximum value for Y-axis (leave empty for auto-scale) |
| xAxisLabel | text | Nein | Label for the X-axis |
| yAxisLabel | text | Nein | Label for the Y-axis |
| showGrid | checkbox | Nein | Display grid lines for better readability |
| showPoints | checkbox | Nein | Display data points (disable to show only regression lines) |
| showLabels | checkbox | Nein | Display labels on data points |
| showRegression | checkbox | Nein | Display linear regression lines for each series |
| showLegend | checkbox | Nein | Display a legend with all series |
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-scatter-plot-generator": {
"name": "scatter-plot-generator",
"description": "Generate customizable scatter plots with regression lines and multiple data series",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=scatter-plot-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": "scatter-plot-generator",
"arguments": {
"chartData": "Single series JSON:\n[{"x": 1, "y": 2}, {"x": 3, "y": 4}]\n\nMulti-series JSON:\n{\n "series": [\n {"name": "Group A", "data": [{"x": 1, "y": 2}]},\n {"name": "Group B", "data": [{"x": 2, "y": 3}]}\n ]\n}\n\nor text:\n1,2\n3,4\n5,6",
"chartTitle": "Enter chart title...",
"pointColors": "#3b82f6,#ef4444,#10b981",
"backgroundColor": "#ffffff",
"gridColor": "#e0e0e0",
"pointSize": "5",
"opacity": "0.8",
"chartHeight": "400",
"xMinValue": 0,
"xMaxValue": 0,
"yMinValue": 0,
"yMaxValue": 0,
"xAxisLabel": "X Values",
"yAxisLabel": "Y Values",
"showGrid": true,
"showPoints": true,
"showLabels": false,
"showRegression": false,
"showLegend": true
}
}
}Fragen oder Probleme? Kontakt: [email protected]