Data Visualization
Generate customizable pie charts from data with various styling options
Call this tool from your code in three languages.
curl -X POST 'https://api.elysiatools.com/en/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}'Send a POST request with your inputs as JSON. File parameters require a separate upload first.
POST https://api.elysiatools.com/en/api/tools/pie-chart-generator| Name | Type | Required | Description |
|---|---|---|---|
| chartData | textarea | Yes | Data for the chart. Can be JSON array or simple label:value pairs |
| chartTitle | text | No | Title that will be displayed above the chart |
| colorScheme | select | No | — |
| backgroundColor | color | No | Background color for the chart container |
| chartSize | number | No |
| Size of the chart in pixels (width and height) |
| innerRadius | number | No | Inner radius for donut chart (0 for pie chart) |
| startAngle | number | No | Starting angle in degrees (0-360) |
| showPercentage | checkbox | No | Display percentage values on pie slices |
| showLabels | checkbox | No | Display labels on pie slices |
| showLegend | checkbox | No | Display a legend with all items |
HTML result
{
"result": "<div>Processed HTML content</div>",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}Add this tool to your Model Context Protocol server so AI agents can list and call it.
Add this block to your MCP client configuration:
{
"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"
}
}
}After connecting to the SSE endpoint, list the exposed tools:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Invoke the tool by its id, passing arguments built from its parameters:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "pie-chart-generator",
"arguments": {
"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
}
}
}Questions or issues? Contact [email protected]