Data Visualization
Criar gráficos de cascata para visualizar mudanças cumulativas com distinção de valores positivos/negativos e exibição de subtotais
Chame esta ferramenta a partir do seu código em três idiomas.
curl -X POST 'https://api.elysiatools.com/pt/api/tools/waterfall-chart-generator' \
-H 'Content-Type: application/json' \
-d '{"chartTitle":"Digite o título do 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"}'Envie uma requisição POST com suas entradas em JSON. Parâmetros do tipo arquivo exigem upload prévio.
POST https://api.elysiatools.com/pt/api/tools/waterfall-chart-generator| Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|
| chartTitle | text | Não | Título que será exibido acima do gráfico de cascata |
| dataItems | textarea | Sim | Itens de dados como array JSON com rótulo, valor e bandeira isSubtotal opcional |
| xAxisLabel | text | Não | Rótulo para o eixo X |
| yAxisLabel | text | Não | Rótulo para o eixo Y |
| positiveColor | color | Não | Cor para barras de valores positivos |
| negativeColor | color | Não | Cor para barras de valores negativos |
| totalColor | color | Não | Cor para barras de subtotal e total |
| connectingLineColor | color | Não | Cor para linhas de conexão entre barras |
| barWidth | number | Não | Largura de cada barra em pixels |
| showValues | checkbox | Não | Mostrar valores no topo das barras |
| showTotal | checkbox | Não | Adicionar automaticamente barra de total final |
| showConnectingLines | checkbox | Não | Mostrar linhas de conexão entre barras |
| valueFormat | select | Não | — |
| fontSize | number | Não | Tamanho da fonte para rótulos e valores |
| titleSize | number | Não | Tamanho da fonte para o título do gráfico |
| fontFamily | text | Não | Família da fonte para elementos de texto |
| chartWidth | number | Não | Largura do gráfico em pixels |
| chartHeight | number | Não | Altura do gráfico em pixels |
| backgroundColor | color | Não | Cor de fundo do gráfico |
| gridColor | color | Não | Cor das linhas de grade |
| animationEnabled | checkbox | Não | Animar o gráfico quando carregar |
| animationDuration | number | Não | Duração da animação em milissegundos |
Resultado HTML
{
"result": "<div>Processed HTML content</div>",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}Adicione esta ferramenta ao seu servidor Model Context Protocol para que agentes de IA possam listá-la e chamá-la.
Adicione este bloco à configuração do seu cliente MCP:
{
"mcpServers": {
"elysiatools-waterfall-chart-generator": {
"name": "waterfall-chart-generator",
"description": "Criar gráficos de cascata para visualizar mudanças cumulativas com distinção de valores positivos/negativos e exibição de subtotais",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=waterfall-chart-generator",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}Após conectar ao endpoint SSE, liste as ferramentas expostas:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Invoque a ferramenta pelo seu id; os argumentos são construídos a partir de seus parâmetros:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "waterfall-chart-generator",
"arguments": {
"chartTitle": "Digite o título do 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"
}
}
}Dúvidas ou problemas? Contate [email protected]