Elysia Tools Docs
ES
Idioma
ZHESPTRUFRDEEN
Volver al sitio
Explorar herramientas

Data Visualization

Generador de Gráfico de Cascada

Crear gráficos de cascada para visualizar cambios acumulativos con distinción de valores positivos/negativos y visualización de subtotales

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/waterfall-chart-generator' \
  -H 'Content-Type: application/json' \
  -d '{"chartTitle":"Ingrese el título del gráfico...","dataItems":"JSON format example:\n[{"label": "Starting Value", "value": 1000, "isSubtotal": true},\n{"label": "Revenue", "value": 500},\n{"label": "Costs", "value": -200},\n{"label": "Expenses", "value": -150},\n{"label": "Net Profit", "value": 150, "isSubtotal": true}]","xAxisLabel":"Categories","yAxisLabel":"Values","positiveColor":"#2196F3","negativeColor":"#F44336","totalColor":"#4CAF50","connectingLineColor":"#666666","barWidth":"60","showValues":true,"showTotal":true,"showConnectingLines":true,"valueFormat":"integer","fontSize":"12","titleSize":"18","fontFamily":"Arial","chartWidth":"800","chartHeight":"500","backgroundColor":"#ffffff","gridColor":"#e0e0e0","animationEnabled":true,"animationDuration":"1000"}'

© 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/waterfall-chart-generator

Parámetros

NombreTipoObligatorioDescripción
chartTitletextNoTítulo que se mostrará encima del gráfico de cascada
dataItemstextareaSíElementos de datos como array JSON con etiqueta, valor y bandera opcional de subtotal
xAxisLabeltextNoEtiqueta para el eje X
yAxisLabeltextNoEtiqueta para el eje Y
positiveColorcolorNoColor para barras de valores positivos
negativeColorcolorNoColor para barras de valores negativos
totalColorcolorNoColor para barras de subtotal y total
connectingLineColorcolorNoColor para líneas de conexión entre barras
barWidthnumberNoAncho de cada barra en píxeles
showValuescheckboxNoMostrar valores encima de las barras
showTotalcheckboxNoAgregar automáticamente barra de total final
showConnectingLinescheckboxNoMostrar líneas de conexión entre barras
valueFormatselectNo—
fontSizenumberNoTamaño de fuente para etiquetas y valores
titleSizenumberNoTamaño de fuente para el título del gráfico
fontFamilytextNoFamilia de fuente para elementos de texto
chartWidthnumberNoAncho del gráfico en píxeles
chartHeightnumberNoAltura del gráfico en píxeles
backgroundColorcolorNoColor de fondo del gráfico
gridColorcolorNoColor de las líneas de cuadrícula
animationEnabledcheckboxNoAnimar el gráfico cuando se carga
animationDurationnumberNoDuración de la animación en milisegundos

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-waterfall-chart-generator": {
      "name": "waterfall-chart-generator",
      "description": "Crear gráficos de cascada para visualizar cambios acumulativos con distinción de valores positivos/negativos y visualización de subtotales",
      "baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=waterfall-chart-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": "waterfall-chart-generator",
    "arguments": {
  "chartTitle": "Ingrese el título del gráfico...",
  "dataItems": "JSON format example:\n[{&quot;label&quot;: &quot;Starting Value&quot;, &quot;value&quot;: 1000, &quot;isSubtotal&quot;: true},\n{&quot;label&quot;: &quot;Revenue&quot;, &quot;value&quot;: 500},\n{&quot;label&quot;: &quot;Costs&quot;, &quot;value&quot;: -200},\n{&quot;label&quot;: &quot;Expenses&quot;, &quot;value&quot;: -150},\n{&quot;label&quot;: &quot;Net Profit&quot;, &quot;value&quot;: 150, &quot;isSubtotal&quot;: true}]",
  "xAxisLabel": "Categories",
  "yAxisLabel": "Values",
  "positiveColor": "#2196F3",
  "negativeColor": "#F44336",
  "totalColor": "#4CAF50",
  "connectingLineColor": "#666666",
  "barWidth": "60",
  "showValues": true,
  "showTotal": true,
  "showConnectingLines": true,
  "valueFormat": "integer",
  "fontSize": "12",
  "titleSize": "18",
  "fontFamily": "Arial",
  "chartWidth": "800",
  "chartHeight": "500",
  "backgroundColor": "#ffffff",
  "gridColor": "#e0e0e0",
  "animationEnabled": true,
  "animationDuration": "1000"
}
  }
}
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