Data Visualization
Gráfico de comparação objetivo vs real com linhas de alvo, valores reais e intervalos de comparação
Chame esta ferramenta a partir do seu código em três idiomas.
curl -X POST 'https://api.elysiatools.com/pt/api/tools/bullet-chart' \
-H 'Content-Type: application/json' \
-d '{"bulletData":"JSON format example:\n[{"title": "Sales Completion Rate", "subtitle": "2024 Q1", "value": 85, "target": 100, "ranges": {"poor": 60, "satisfactory": 80, "good": 95, "excellent": 100}, "unit": "%", "format": "percentage"},\n{"title": "Customer Satisfaction", "subtitle": "This Month Survey", "value": 4.2, "target": 4.5, "ranges": {"poor": 3.0, "satisfactory": 3.8, "good": 4.3, "excellent": 4.8}, "unit": "points", "format": "number"}]","chartTitle":"Performance Dashboard","orientation":"horizontal","showLabels":true,"showGrid":false,"colorScheme":"blue","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/bullet-chart| Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|
| bulletData | textarea | Sim | Dados do gráfico de bala em formato JSON incluindo títulos, valores, alvos e intervalos |
| chartTitle | text | Não | Título principal do gráfico de bala |
| orientation | select | Não | — |
| showLabels | checkbox | Não | Se exibir rótulos de valor |
| showGrid | checkbox | Não | Se exibir linhas de grade de fundo |
| colorScheme | select | Não | — |
| animationDuration | text | 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-bullet-chart": {
"name": "bullet-chart",
"description": "Gráfico de comparação objetivo vs real com linhas de alvo, valores reais e intervalos de comparação",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=bullet-chart",
"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": "bullet-chart",
"arguments": {
"bulletData": "JSON format example:\n[{"title": "Sales Completion Rate", "subtitle": "2024 Q1", "value": 85, "target": 100, "ranges": {"poor": 60, "satisfactory": 80, "good": 95, "excellent": 100}, "unit": "%", "format": "percentage"},\n{"title": "Customer Satisfaction", "subtitle": "This Month Survey", "value": 4.2, "target": 4.5, "ranges": {"poor": 3.0, "satisfactory": 3.8, "good": 4.3, "excellent": 4.8}, "unit": "points", "format": "number"}]",
"chartTitle": "Performance Dashboard",
"orientation": "horizontal",
"showLabels": true,
"showGrid": false,
"colorScheme": "blue",
"animationDuration": "1000"
}
}
}Dúvidas ou problemas? Contate [email protected]