Data Visualization
Generar gráficos sunburst jerárquicos con coordenadas polares y diseño radial
Llama a esta herramienta desde tu código en tres lenguajes.
curl -X POST 'https://api.elysiatools.com/es/api/tools/sunburst-chart-generator' \
-H 'Content-Type: application/json' \
-d '{"chartData":"JSON hierarchical format:\n{\n "name": "Root",\n "children": [\n {\n "name": "Category A",\n "value": 100,\n "children": [\n {"name": "Item A1", "value": 60},\n {"name": "Item A2", "value": 40}\n ]\n },\n {\n "name": "Category B",\n "value": 80,\n "children": [\n {"name": "Item B1", "value": 50},\n {"name": "Item B2", "value": 30}\n ]\n }\n ]\n}\n\nEach node can have children for hierarchical structure or value for leaf nodes.","chartTitle":"Sunburst Chart","colorScheme":"default","maxDepth":5,"innerRadiusPercent":0,"labelSize":12,"showLabels":true,"showValues":false,"showPercentages":true,"chartWidth":"800","chartHeight":"600"}'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/sunburst-chart-generator| Nombre | Tipo | Obligatorio | Descripción |
|---|---|---|---|
| chartData | textarea | Sí | Datos jerárquicos para el gráfico sunburst en formato JSON |
| chartTitle | text | No | Título que se mostrará encima del gráfico |
| colorScheme | select | No | Esquema de color para los segmentos jerárquicos |
| maxDepth | range | No | Número máximo de niveles jerárquicos para mostrar |
| innerRadiusPercent | range | No | Radio interno como porcentaje del radio externo (0-50%) |
| labelSize | range | No | Tamaño de fuente para etiquetas de segmentos |
| showLabels | checkbox | No | Mostrar etiquetas en los segmentos |
| showValues | checkbox | No | Mostrar valores en los segmentos |
| showPercentages | checkbox | No | Mostrar valores porcentuales en los segmentos |
| chartWidth | text | No | Ancho del gráfico en píxeles |
| chartHeight | text | No | Altura del gráfico en píxeles |
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-sunburst-chart-generator": {
"name": "sunburst-chart-generator",
"description": "Generar gráficos sunburst jerárquicos con coordenadas polares y diseño radial",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=sunburst-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": "sunburst-chart-generator",
"arguments": {
"chartData": "JSON hierarchical format:\n{\n "name": "Root",\n "children": [\n {\n "name": "Category A",\n "value": 100,\n "children": [\n {"name": "Item A1", "value": 60},\n {"name": "Item A2", "value": 40}\n ]\n },\n {\n "name": "Category B",\n "value": 80,\n "children": [\n {"name": "Item B1", "value": 50},\n {"name": "Item B2", "value": 30}\n ]\n }\n ]\n}\n\nEach node can have children for hierarchical structure or value for leaf nodes.",
"chartTitle": "Sunburst Chart",
"colorScheme": "default",
"maxDepth": 5,
"innerRadiusPercent": 0,
"labelSize": 12,
"showLabels": true,
"showValues": false,
"showPercentages": true,
"chartWidth": "800",
"chartHeight": "600"
}
}
}¿Dudas o problemas? Contacta con [email protected]