Elysia Tools Docs
PT
Idioma
ZHESPTRUFRDEEN
Voltar ao site
Explorar ferramentas

Data Visualization

Line Chart Generator

Generate customizable multi-line charts from data with various styling options

html· Resultado HTMLAbrir ferramenta

Início rápido

Chame esta ferramenta a partir do seu código em três idiomas.

cURL
curl -X POST 'https://api.elysiatools.com/pt/api/tools/line-chart-generator' \
  -H 'Content-Type: application/json' \
  -d '{"chartData":"Single line JSON:\n[{"label": "Jan", "value": 100},\n{"label": "Feb", "value": 150},\n{"label": "Mar", "value": 120}]\n\nMulti-line JSON:\n{\n  "labels": ["Jan", "Feb", "Mar"],\n  "series": [\n    {"name": "Product A", "data": [100, 150, 120]},\n    {"name": "Product B", "data": [80, 110, 140]}\n  ]\n}\n\nor text (single line):\nJan:100\nFeb:150\nMar:120","chartTitle":"Enter chart title...","curveType":"linear","lineColors":"#3b82f6,#ef4444,#10b981","backgroundColor":"#ffffff","gridColor":"#e0e0e0","lineWidth":"3","chartHeight":"400","maxValue":0,"minValue":0,"xAxisLabel":"Category","yAxisLabel":"Value","showGrid":true,"showPoints":true,"showValues":true,"fillArea":false,"showLegend":true}'

© 2026 Elysia Tools. Documentação para desenvolvedores.

Voltar ao siteExplorar ferramentas

Referência da API

Envie uma requisição POST com suas entradas em JSON. Parâmetros do tipo arquivo exigem upload prévio.

Endpoint

HTTP
POST https://api.elysiatools.com/pt/api/tools/line-chart-generator

Parâmetros

NomeTipoObrigatórioDescrição
chartDatatextareaSimData for the chart. Supports single line array, multi-line object, or simple text format
chartTitletextNãoTitle that will be displayed above the chart
curveTypeselectNão—
lineColorstextNãoColors for multiple lines (comma-separated hex colors). Leave empty for default colors.
backgroundColorcolorNãoBackground color for the chart container
gridColorcolorNãoColor for the grid lines
lineWidthnumberNãoWidth of the line in pixels
chartHeightnumberNãoHeight of the chart in pixels
maxValuenumberNãoMaximum value for Y-axis (leave empty for auto-scale)
minValuenumberNãoMinimum value for Y-axis
xAxisLabeltextNãoLabel for the X-axis
yAxisLabeltextNãoLabel for the Y-axis
showGridcheckboxNãoDisplay grid lines for better readability
showPointscheckboxNãoDisplay data points on the line
showValuescheckboxNãoDisplay the actual values on data points
fillAreacheckboxNãoFill the area under the line with color
showLegendcheckboxNãoDisplay a legend below the chart

Formato de resposta

Resultado HTML

JSON
{
  "result": "<div>Processed HTML content</div>",
  "error": "Error message (optional)",
  "message": "Notification message (optional)",
  "metadata": {
    "key": "value"
  }
}

Integração MCP

Adicione esta ferramenta ao seu servidor Model Context Protocol para que agentes de IA possam listá-la e chamá-la.

Configuração do servidor

Adicione este bloco à configuração do seu cliente MCP:

mcp.json
{
  "mcpServers": {
    "elysiatools-line-chart-generator": {
      "name": "line-chart-generator",
      "description": "Generate customizable multi-line charts from data with various styling options",
      "baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=line-chart-generator",
      "command": "",
      "args": [],
      "env": {},
      "isActive": true,
      "type": "sse"
    }
  }
}

Listar ferramentas disponíveis

Após conectar ao endpoint SSE, liste as ferramentas expostas:

tools/list
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/list"
}

Chamar esta ferramenta

Invoque a ferramenta pelo seu id; os argumentos são construídos a partir de seus parâmetros:

tools/call
{
  "jsonrpc": "2.0",
  "id": 2,
  "method": "tools/call",
  "params": {
    "name": "line-chart-generator",
    "arguments": {
  "chartData": "Single line JSON:\n[{&quot;label&quot;: &quot;Jan&quot;, &quot;value&quot;: 100},\n{&quot;label&quot;: &quot;Feb&quot;, &quot;value&quot;: 150},\n{&quot;label&quot;: &quot;Mar&quot;, &quot;value&quot;: 120}]\n\nMulti-line JSON:\n{\n  &quot;labels&quot;: [&quot;Jan&quot;, &quot;Feb&quot;, &quot;Mar&quot;],\n  &quot;series&quot;: [\n    {&quot;name&quot;: &quot;Product A&quot;, &quot;data&quot;: [100, 150, 120]},\n    {&quot;name&quot;: &quot;Product B&quot;, &quot;data&quot;: [80, 110, 140]}\n  ]\n}\n\nor text (single line):\nJan:100\nFeb:150\nMar:120",
  "chartTitle": "Enter chart title...",
  "curveType": "linear",
  "lineColors": "#3b82f6,#ef4444,#10b981",
  "backgroundColor": "#ffffff",
  "gridColor": "#e0e0e0",
  "lineWidth": "3",
  "chartHeight": "400",
  "maxValue": 0,
  "minValue": 0,
  "xAxisLabel": "Category",
  "yAxisLabel": "Value",
  "showGrid": true,
  "showPoints": true,
  "showValues": true,
  "fillArea": false,
  "showLegend": true
}
  }
}
Encadeie várias ferramentas em uma sessão com uma lista toolId separada por vírgulas, p. ex. /mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp (máx. 20).

Dúvidas ou problemas? Contate [email protected]

Explorar ferramentas
Abrir ferramenta