Data Visualization
Generar gráficos de burbujas personalizables desde datos con tres dimensiones (x, y, tamaño)
Llama a esta herramienta desde tu código en tres lenguajes.
curl -X POST 'https://api.elysiatools.com/es/api/tools/bubble-chart-generator' \
-H 'Content-Type: application/json' \
-d '{"chartData":"JSON format:\n[{"label": "Product A", "x": 20, "y": 30, "size": 15},\n{"label": "Product B", "x": 40, "y": 60, "size": 25},\n{"label": "Product C", "x": 60, "y": 45, "size": 20}]\n\nor text format:\nProduct A,20,30,15\nProduct B,40,60,25\nProduct C,60,45,20","chartTitle":"Ingrese el título del gráfico...","colorScheme":"default","bubbleColor":"#3b82f6","bubbleOpacity":"0.7","bubbleScale":"1.0","backgroundColor":"#ffffff","gridColor":"#e0e0e0","chartHeight":"500","xMaxValue":0,"yMaxValue":0,"xMinValue":0,"yMinValue":0,"xAxisLabel":"X Axis","yAxisLabel":"Y Axis","showGrid":true,"showValues":true,"showLegend":true}'Envía una petición POST con tus entradas en JSON. Los parámetros de tipo archivo requieren una subida previa.
POST https://api.elysiatools.com/es/api/tools/bubble-chart-generator| Nombre | Tipo | Obligatorio | Descripción |
|---|---|---|---|
| chartData | textarea | Sí | Datos para el gráfico. Soporta array JSON o formato de texto simple etiqueta,x,y,tamaño |
| chartTitle | text | No | Título que se mostrará encima del gráfico |
| colorScheme | select | No | — |
| bubbleColor | color | No | Primary color for the bubbles (used if color scheme is not rainbow) |
| bubbleOpacity | number | No | Opacidad de las burbujas (0.1 a 1.0) |
| bubbleScale | number | No | Factor de escala para tamaños de burbuja |
| backgroundColor | color | No | Color de fondo para el contenedor del gráfico |
| gridColor | color | No | Color para las líneas de cuadrícula |
| chartHeight | number | No | Altura del gráfico en píxeles |
| xMaxValue | number | No | Valor máximo para el eje X (deje vacío para auto-escala) |
| yMaxValue | number | No | Valor máximo para el eje Y (deje vacío para auto-escala) |
| xMinValue | number | No | Valor mínimo para el eje X (deje vacío para auto-escala) |
| yMinValue | number | No | Valor mínimo para el eje Y (deje vacío para auto-escala) |
| xAxisLabel | text | No | Etiqueta para el eje X |
| yAxisLabel | text | No | Etiqueta para el eje Y |
| showGrid | checkbox | No | Mostrar líneas de cuadrícula para mejor legibilidad |
| showValues | checkbox | No | Mostrar etiquetas en las burbujas |
| showLegend | checkbox | No | Mostrar una leyenda debajo del gráfico |
Resultado HTML
{
"result": "<div>Processed HTML content</div>",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}Añade esta herramienta a tu servidor Model Context Protocol para que los agentes de IA puedan listarla y llamarla.
Añade este bloque a la configuración de tu cliente MCP:
{
"mcpServers": {
"elysiatools-bubble-chart-generator": {
"name": "bubble-chart-generator",
"description": "Generar gráficos de burbujas personalizables desde datos con tres dimensiones (x, y, tamaño)",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=bubble-chart-generator",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}Tras conectar al endpoint SSE, lista las herramientas expuestas:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Invoca la herramienta por su id; los argumentos se construyen a partir de sus parámetros:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "bubble-chart-generator",
"arguments": {
"chartData": "JSON format:\n[{"label": "Product A", "x": 20, "y": 30, "size": 15},\n{"label": "Product B", "x": 40, "y": 60, "size": 25},\n{"label": "Product C", "x": 60, "y": 45, "size": 20}]\n\nor text format:\nProduct A,20,30,15\nProduct B,40,60,25\nProduct C,60,45,20",
"chartTitle": "Ingrese el título del gráfico...",
"colorScheme": "default",
"bubbleColor": "#3b82f6",
"bubbleOpacity": "0.7",
"bubbleScale": "1.0",
"backgroundColor": "#ffffff",
"gridColor": "#e0e0e0",
"chartHeight": "500",
"xMaxValue": 0,
"yMaxValue": 0,
"xMinValue": 0,
"yMinValue": 0,
"xAxisLabel": "X Axis",
"yAxisLabel": "Y Axis",
"showGrid": true,
"showValues": true,
"showLegend": true
}
}
}¿Dudas o problemas? Contacta con [email protected]