Elysia Tools Docs
RU
Язык
ZHESPTRUFRDEEN
На сайт
Обзор инструментов

Data Visualization

Pie Chart Generator

Generate customizable pie charts from data with various styling options

html· HTML-результатОткрыть инструмент

Быстрый старт

Вызовите этот инструмент из своего кода на трёх языках.

cURL
curl -X POST 'https://api.elysiatools.com/ru/api/tools/pie-chart-generator' \
  -H 'Content-Type: application/json' \
  -d '{"chartData":"JSON: [{"label": "Jan", "value": 100},\n{"label": "Feb", "value": 150},\n{"label": "Mar", "value": 120}]\n\nor text:\nJan:100\nFeb:150\nMar:120","chartTitle":"Enter chart title...","colorScheme":"default","backgroundColor":"#ffffff","chartSize":"400","innerRadius":"0","startAngle":"0","showPercentage":true,"showLabels":true,"showLegend":true}'

© 2026 Elysia Tools. Документация для разработчиков.

На сайтОбзор инструментов

Справочник API

Отправьте POST-запрос с входными данными в JSON. Параметры типа «файл» требуют предварительной загрузки.

Endpoint

HTTP
POST https://api.elysiatools.com/ru/api/tools/pie-chart-generator

Параметры

ИмяТипОбязательныйОписание
chartDatatextareaДаData for the chart. Can be JSON array or simple label:value pairs
chartTitletextНетTitle that will be displayed above the chart
colorSchemeselectНет—
backgroundColorcolorНетBackground color for the chart container
chartSizenumberНетSize of the chart in pixels (width and height)
innerRadiusnumberНетInner radius for donut chart (0 for pie chart)
startAnglenumberНетStarting angle in degrees (0-360)
showPercentagecheckboxНетDisplay percentage values on pie slices
showLabelscheckboxНетDisplay labels on pie slices
showLegendcheckboxНетDisplay a legend with all items

Формат ответа

HTML-результат

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

Интеграция MCP

Добавьте этот инструмент на свой сервер Model Context Protocol, чтобы ИИ-агенты могли перечислять и вызывать его.

Конфигурация сервера

Добавьте этот блок в конфигурацию вашего MCP-клиента:

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

Получить список инструментов

После подключения к SSE-endpoint выведите список доступных инструментов:

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

Вызвать этот инструмент

Вызовите инструмент по его id; аргументы формируются из его параметров:

tools/call
{
  "jsonrpc": "2.0",
  "id": 2,
  "method": "tools/call",
  "params": {
    "name": "pie-chart-generator",
    "arguments": {
  "chartData": "JSON: [{&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\nor text:\nJan:100\nFeb:150\nMar:120",
  "chartTitle": "Enter chart title...",
  "colorScheme": "default",
  "backgroundColor": "#ffffff",
  "chartSize": "400",
  "innerRadius": "0",
  "startAngle": "0",
  "showPercentage": true,
  "showLabels": true,
  "showLegend": true
}
  }
}
Объединяйте несколько инструментов в одной сессии списком toolId через запятую, напр. /mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp (макс. 20).

Вопросы или проблемы? Свяжитесь с [email protected]

Обзор инструментов
Открыть инструмент