Elysia Tools Docs
ES
Idioma
ZHESPTRUFRDEEN
Volver al sitio
Explorar herramientas

Data Visualization

Scatter Plot Generator

Generate customizable scatter plots with regression lines and multiple data series

html· Resultado HTMLAbrir herramienta

Inicio rápido

Llama a esta herramienta desde tu código en tres lenguajes.

cURL
curl -X POST 'https://api.elysiatools.com/es/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}'

© 2026 Elysia Tools. Documentación para desarrolladores.

Volver al sitioExplorar herramientas

Referencia de la API

Envía una petición POST con tus entradas en JSON. Los parámetros de tipo archivo requieren una subida previa.

Endpoint

HTTP
POST https://api.elysiatools.com/es/api/tools/scatter-plot-generator

Parámetros

NombreTipoObligatorioDescripción
chartDatatextareaSíData for the scatter plot. Supports single/multi-series JSON or simple x,y pairs
chartTitletextNoTitle that will be displayed above the chart
pointColorstextNoColors for multiple series (comma-separated hex colors). Leave empty for default colors.
backgroundColorcolorNoBackground color for the chart container
gridColorcolorNoColor for the grid lines
pointSizenumberNoSize of data points in pixels
opacitynumberNoOpacity of data points (0.1 to 1.0)
chartHeightnumberNoHeight of the chart in pixels
xMinValuenumberNoMinimum value for X-axis (leave empty for auto-scale)
xMaxValuenumberNoMaximum value for X-axis (leave empty for auto-scale)
yMinValuenumberNoMinimum value for Y-axis (leave empty for auto-scale)
yMaxValuenumberNoMaximum value for Y-axis (leave empty for auto-scale)
xAxisLabeltextNoLabel for the X-axis
yAxisLabeltextNoLabel for the Y-axis
showGridcheckboxNoDisplay grid lines for better readability
showPointscheckboxNoDisplay data points (disable to show only regression lines)
showLabelscheckboxNoDisplay labels on data points
showRegressioncheckboxNoDisplay linear regression lines for each series
showLegendcheckboxNoDisplay a legend with all series

Formato de respuesta

Resultado HTML

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

Integración MCP

Añade esta herramienta a tu servidor Model Context Protocol para que los agentes de IA puedan listarla y llamarla.

Configuración del servidor

Añade este bloque a la configuración de tu cliente MCP:

mcp.json
{
  "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"
    }
  }
}

Listar herramientas disponibles

Tras conectar al endpoint SSE, lista las herramientas expuestas:

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

Llamar a esta herramienta

Invoca la herramienta por su id; los argumentos se construyen a partir de sus parámetros:

tools/call
{
  "jsonrpc": "2.0",
  "id": 2,
  "method": "tools/call",
  "params": {
    "name": "scatter-plot-generator",
    "arguments": {
  "chartData": "Single series JSON:\n[{&quot;x&quot;: 1, &quot;y&quot;: 2}, {&quot;x&quot;: 3, &quot;y&quot;: 4}]\n\nMulti-series JSON:\n{\n  &quot;series&quot;: [\n    {&quot;name&quot;: &quot;Group A&quot;, &quot;data&quot;: [{&quot;x&quot;: 1, &quot;y&quot;: 2}]},\n    {&quot;name&quot;: &quot;Group B&quot;, &quot;data&quot;: [{&quot;x&quot;: 2, &quot;y&quot;: 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
}
  }
}
Encadena varias herramientas en una sesión con una lista toolId separada por comas, p. ej. /mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp (máx. 20).

¿Dudas o problemas? Contacta con [email protected]

Explorar herramientas
Abrir herramienta