Data Visualization
Gráfico que muestra rangos mínimos y máximos e intervalos de tiempo, versión simplificada del diagrama de Gantt
Llama a esta herramienta desde tu código en tres lenguajes.
curl -X POST 'https://api.elysiatools.com/es/api/tools/range-bar-chart' \
-H 'Content-Type: application/json' \
-d '{"rangeData":"JSON format example (Date ranges):\n[{"label": "Project Phase 1", "startDate": "2024-01-01", "endDate": "2024-02-15", "color": "#4CAF50"},\n{"label": "Project Phase 2", "startDate": "2024-02-10", "endDate": "2024-04-01", "color": "#2196F3"}]\n\nOr numeric ranges:\n[{"label": "Product A", "minValue": 50, "maxValue": 120, "color": "#FF9800"},\n{"label": "Product B", "minValue": 80, "maxValue": 180, "color": "#4CAF50"}]","chartTitle":"Range Analysis Chart","orientation":"horizontal","showLabels":true,"showValues":true,"showGrid":true,"colorScheme":"blue","barHeight":"30","animationDuration":"1000","chartHeight":"400"}'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/range-bar-chart| Nombre | Tipo | Obligatorio | Descripción |
|---|---|---|---|
| rangeData | textarea | Sí | Datos del gráfico de rango en formato JSON. Soporta rangos de fecha (startDate/endDate) o rangos numéricos (minValue/maxValue) |
| chartTitle | text | No | Título principal del gráfico de rango |
| orientation | select | No | — |
| showLabels | checkbox | No | Si mostrar etiquetas de elementos |
| showValues | checkbox | No | Si mostrar valores de inicio/fin |
| showGrid | checkbox | No | Si mostrar líneas de cuadrícula de fondo |
| colorScheme | select | No | — |
| barHeight | text | No | Altura/grosor de las barras de rango en píxeles |
| animationDuration | text | No | Duración de la animación en milisegundos |
| chartHeight | text | No | Altura del área del gráfico en píxeles (para orientación vertical) |
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-range-bar-chart": {
"name": "range-bar-chart",
"description": "Gráfico que muestra rangos mínimos y máximos e intervalos de tiempo, versión simplificada del diagrama de Gantt",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=range-bar-chart",
"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": "range-bar-chart",
"arguments": {
"rangeData": "JSON format example (Date ranges):\n[{"label": "Project Phase 1", "startDate": "2024-01-01", "endDate": "2024-02-15", "color": "#4CAF50"},\n{"label": "Project Phase 2", "startDate": "2024-02-10", "endDate": "2024-04-01", "color": "#2196F3"}]\n\nOr numeric ranges:\n[{"label": "Product A", "minValue": 50, "maxValue": 120, "color": "#FF9800"},\n{"label": "Product B", "minValue": 80, "maxValue": 180, "color": "#4CAF50"}]",
"chartTitle": "Range Analysis Chart",
"orientation": "horizontal",
"showLabels": true,
"showValues": true,
"showGrid": true,
"colorScheme": "blue",
"barHeight": "30",
"animationDuration": "1000",
"chartHeight": "400"
}
}
}¿Dudas o problemas? Contacta con [email protected]