Data Visualization
Generate customizable scatter plots with regression lines and multiple data series
Chame esta ferramenta a partir do seu código em três idiomas.
curl -X POST 'https://api.elysiatools.com/pt/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}'Envie uma requisição POST com suas entradas em JSON. Parâmetros do tipo arquivo exigem upload prévio.
POST https://api.elysiatools.com/pt/api/tools/scatter-plot-generator| Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|
| chartData | textarea | Sim | Data for the scatter plot. Supports single/multi-series JSON or simple x,y pairs |
| chartTitle | text | Não | Title that will be displayed above the chart |
| pointColors | text | Não | Colors for multiple series (comma-separated hex colors). Leave empty for default colors. |
| backgroundColor | color | Não | Background color for the chart container |
| gridColor | color | Não | Color for the grid lines |
| pointSize | number | Não | Size of data points in pixels |
| opacity | number | Não | Opacity of data points (0.1 to 1.0) |
| chartHeight | number | Não | Height of the chart in pixels |
| xMinValue | number | Não | Minimum value for X-axis (leave empty for auto-scale) |
| xMaxValue | number | Não | Maximum value for X-axis (leave empty for auto-scale) |
| yMinValue | number | Não | Minimum value for Y-axis (leave empty for auto-scale) |
| yMaxValue | number | Não | Maximum value for Y-axis (leave empty for auto-scale) |
| xAxisLabel | text | Não | Label for the X-axis |
| yAxisLabel | text | Não | Label for the Y-axis |
| showGrid | checkbox | Não | Display grid lines for better readability |
| showPoints | checkbox | Não | Display data points (disable to show only regression lines) |
| showLabels | checkbox | Não | Display labels on data points |
| showRegression | checkbox | Não | Display linear regression lines for each series |
| showLegend | checkbox | Não | Display a legend with all series |
Resultado HTML
{
"result": "<div>Processed HTML content</div>",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}Adicione esta ferramenta ao seu servidor Model Context Protocol para que agentes de IA possam listá-la e chamá-la.
Adicione este bloco à configuração do seu cliente MCP:
{
"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"
}
}
}Após conectar ao endpoint SSE, liste as ferramentas expostas:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Invoque a ferramenta pelo seu id; os argumentos são construídos a partir de seus parâmetros:
{
"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
}
}
}Dúvidas ou problemas? Contate [email protected]